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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm

Issue 1061623002: [Toolbar Mac UI] Simplify and correct omnibox pinning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/extensions/browser_actions_controller.mm
diff --git a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
index 30ed032117a2237e8fde4ddbefe09082d6c77e44..dc640a18c3ed719ee9875e8defca806e81fa2b57 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
@@ -514,7 +514,10 @@ void ToolbarActionsBarBridge::OnOverflowedActionWantsToRunChanged(
}
// We need to set the alpha value in case the container has resized.
[button setAlphaValue:1.0];
- } else if ([button superview] == containerView_) {
+ } else if ([button superview] == containerView_ &&
+ ![containerView_ userIsResizing]) {
+ // If the user is resizing, all buttons are (and should be) on the
+ // container view.
[button removeFromSuperview];
[button setAlphaValue:0.0];
}

Powered by Google App Engine
This is Rietveld 408576698