Index: ui/views/controls/menu/menu_controller.cc |
diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc |
index bba8a191e214b971aa7a417dc5c423a946f4a6e2..53fa52c30564458e8089bf446a099a51cb69e7eb 100644 |
--- a/ui/views/controls/menu/menu_controller.cc |
+++ b/ui/views/controls/menu/menu_controller.cc |
@@ -1646,6 +1646,10 @@ gfx::Rect MenuController::CalculateMenuBounds(MenuItemView* item, |
gfx::Size pref = submenu->GetScrollViewContainer()->GetPreferredSize(); |
+ // For comboboxes, ensure the menu is at least as wide as the anchor. |
+ if (is_combobox_) |
+ pref.set_width(std::max(pref.width(), state_.initial_bounds.width())); |
+ |
// Don't let the menu go too wide. |
pref.set_width(std::min(pref.width(), |
item->GetDelegate()->GetMaxWidthForMenu(item))); |