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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm

Issue 2751913008: [Mac] Resize bookmark bar no item container after localizing (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm
index 1a44e33a0f07ce7fcce9f498ca81bd20b04cd94c..ce78d86d8cdc60f7f87db07ecb8cc6a5dc5e63d3 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm
@@ -120,6 +120,10 @@ static const CGFloat kTextFieldTrailingPadding = 5;
[noItemContainer_ addSubview:importBookmarksButton_];
[noItemContainer_ addSubview:noItemTextfield_];
+ NSRect containerFrame = [noItemContainer_ frame];
+ containerFrame.size.width = std::max(
+ NSWidth(containerFrame), NSMaxX([importBookmarksButton_ frame]));
+ [noItemContainer_ setFrame:containerFrame];
[self addSubview:noItemContainer_];
[self registerForNotificationsAndDraggedTypes];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698