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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc

Issue 2208973003: Add some extra height to bookmark bar if the font wants to be larger (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set a border on the BookmarkInstructionsView instance and update GetPreferredSize() to respect it. 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/views/bookmarks/bookmark_bar_instructions_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc
index 7064073e301089b5ffdb55112ecfb706b36a5820..0884a2d5b9f475ec09d0fd4e1d53b0d6a222081e 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc
@@ -69,6 +69,7 @@ gfx::Size BookmarkBarInstructionsView::GetPreferredSize() const {
width += pref.width();
}
width += (child_count() - 1) * GetViewPadding();
+ height += GetInsets().height();
return gfx::Size(width, height);
}

Powered by Google App Engine
This is Rietveld 408576698