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

Unified Diff: ui/views/controls/menu/submenu_view.cc

Issue 11026076: Added MenuConfig setter to MenuItemView, updated rest of the code to use set MenuConfig if it avail… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « ui/views/controls/menu/menu_separator_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/submenu_view.cc
diff --git a/ui/views/controls/menu/submenu_view.cc b/ui/views/controls/menu/submenu_view.cc
index a84b3ec9be5c941a7b2a699e9da5e913745337fe..12d63edd5d6775981903622b5c431f31fd51d817 100644
--- a/ui/views/controls/menu/submenu_view.cc
+++ b/ui/views/controls/menu/submenu_view.cc
@@ -152,7 +152,7 @@ gfx::Size SubmenuView::GetPreferredSize() {
}
if (max_accelerator_width_ > 0) {
max_accelerator_width_ +=
- MenuConfig::instance().label_to_accelerator_padding;
+ GetMenuItem()->GetMenuConfig().label_to_accelerator_padding;
}
gfx::Insets insets = GetInsets();
return gfx::Size(
« no previous file with comments | « ui/views/controls/menu/menu_separator_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698