Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1113)

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 2227513002: MacViews: Reposition permission bubble on browser resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 69e51c3c192e9fca16e2cfa622d8de452ad735cc..35f3e953adf3b096350898945b5be7075cbbeb85 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1713,6 +1713,11 @@ - (void)windowDidResize:(NSNotification*)notification {
statusBubble_->UpdateSizeAndPosition();
}
+ // Reposition the permission bubble if it exists.
+ PermissionRequestManager* manager = [self permissionRequestManager];
+ if (manager)
+ manager->UpdateAnchorPosition();
tapted 2016/08/08 07:10:18 This code fragment is in 3 places now... it's poss
karandeepb 2016/08/08 10:37:29 This is also a bug on stable, though can't seem to
tapted 2016/08/09 01:58:39 Don't know of a bug for it - it's pretty obscure.
karandeepb 2016/08/09 07:51:32 Will file a bug for it.
tapted 2016/08/10 01:27:20 Yah - I think BaseBubbleController's updateAnchor
+
// The FindBar needs to know its own position to properly detect overlaps
// with find results. The position changes whenever the window is resized,
// and |layoutSubviews| computes the FindBar's position.

Powered by Google App Engine
This is Rietveld 408576698