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

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

Issue 1009613002: [Toolbar UI Mac] Fix omnibox minimum width (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avi's 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 f55d9fd548d978811a87840ee70dbb93d9c19f7a..30ed032117a2237e8fde4ddbefe09082d6c77e44 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
@@ -473,7 +473,7 @@ void ToolbarActionsBarBridge::OnOverflowedActionWantsToRunChanged(
name:kBrowserActionButtonDraggingNotification
object:newButton];
- [containerView_ setMaxWidth:toolbarActionsBar_->GetMaximumWidth()];
+ [containerView_ setMaxDesiredWidth:toolbarActionsBar_->GetMaximumWidth()];
}
- (void)redraw {
@@ -528,7 +528,7 @@ void ToolbarActionsBarBridge::OnOverflowedActionWantsToRunChanged(
[button onRemoved];
[buttons_ removeObject:button];
- [containerView_ setMaxWidth:toolbarActionsBar_->GetMaximumWidth()];
+ [containerView_ setMaxDesiredWidth:toolbarActionsBar_->GetMaximumWidth()];
}
- (void)removeAllViews {

Powered by Google App Engine
This is Rietveld 408576698