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

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

Issue 2861873002: Align the base of the shelf's context menu to the top edge of the shelf. (Closed)
Patch Set: Align the base of the shelf's context menu to the top edge of the shelf. Created 3 years, 7 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: ui/views/controls/menu/menu_runner.cc
diff --git a/ui/views/controls/menu/menu_runner.cc b/ui/views/controls/menu/menu_runner.cc
index 991f76bc48a89261a695e03da2ee81a803758506..6e07c3e04ac5af3b9c5c97bdd1a481533021d244 100644
--- a/ui/views/controls/menu/menu_runner.cc
+++ b/ui/views/controls/menu/menu_runner.cc
@@ -53,7 +53,7 @@ void MenuRunner::RunMenuAt(Widget* parent,
internal::DisplayChangeListener::Create(parent, this));
}
- if (run_types_ & CONTEXT_MENU) {
+ if ((run_types_ & CONTEXT_MENU) && !(run_types_ & SHELF_CONTEXT_MENU)) {
switch (source_type) {
case ui::MENU_SOURCE_NONE:
case ui::MENU_SOURCE_KEYBOARD:

Powered by Google App Engine
This is Rietveld 408576698