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

Unified Diff: chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc

Issue 400693003: Fix the bounds of the extension action overflow menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/views/toolbar/extension_toolbar_menu_view.cc
diff --git a/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc b/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc
index ec259a9c6fbe9a67cd2dcc126fa27a1809fd4260..e8a01e2c702ba00aa8a543baa18238ff35e56cb9 100644
--- a/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc
+++ b/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc
@@ -44,8 +44,7 @@ gfx::Size ExtensionToolbarMenuView::GetPreferredSize() const {
void ExtensionToolbarMenuView::Layout() {
// All buttons are given the same width.
gfx::Size sz = container_->GetPreferredSize();
- container_->SetBounds(views::MenuItemView::label_start(),
- 0,
- sz.width(),
- sz.height() + (kVerticalPadding / 2));
+ int height = sz.height() + kVerticalPadding / 2;
+ SetBounds(views::MenuItemView::label_start(), 0, sz.width(), height);
+ container_->SetBounds(0, 0, sz.width(), height);
}
« 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