Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix education popup border
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed Nov 17, 2023
1 parent a651589 commit 6060ece
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ extension BrowserViewController {
guard presentedViewController == nil else {
return
}

let frame = view.convert(
topToolbar.locationView.urlDisplayLabel.frame,
from: topToolbar.locationView).insetBy(dx: -7.0, dy: -1.0)
topToolbar.locationView.frame,
from: topToolbar.locationView).insetBy(dx: -1.0, dy: -1.0)

// Present the popover
let controller = WelcomeOmniBoxOnboardingController()
Expand All @@ -88,7 +88,7 @@ extension BrowserViewController {

presentPopoverContent(
using: controller,
with: frame, cornerRadius: 6.0,
with: frame, cornerRadius: topToolbar.locationContainer.layer.cornerRadius,
didDismiss: {
Preferences.FullScreenCallout.omniboxCalloutCompleted.value = true
},
Expand Down

0 comments on commit 6060ece

Please sign in to comment.