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

Unified Diff: chrome/views/button_dropdown.cc

Issue 19516: Lands fix for 6878 from Yong Shin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/button_dropdown.cc
===================================================================
--- chrome/views/button_dropdown.cc (revision 8969)
+++ chrome/views/button_dropdown.cc (working copy)
@@ -132,6 +132,11 @@
anchor = Menu::TOPRIGHT;
View::ConvertPointToScreen(this, &menu_position);
+
+ int left_bound = GetSystemMetrics(SM_XVIRTUALSCREEN);
+ if (menu_position.x() < left_bound)
+ menu_position.set_x(left_bound);
+
Menu menu(menu_delegate_, anchor, window);
// ID's for AppendMenu is 1-based because RunMenu will ignore the user
@@ -187,4 +192,3 @@
}
} // namespace views
-
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698