diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 21:13:26 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 21:13:26 +0000 |
commit | c83f76b4f200a03719e3fe3c51ca35e03b429fb0 (patch) | |
tree | d6b740b8954e42dbe58c5bba70258f5e25112a5f /chrome | |
parent | 0be6c8dbcaca7e2e45dd154714a7336457b80c5e (diff) | |
download | chromium_src-c83f76b4f200a03719e3fe3c51ca35e03b429fb0.zip chromium_src-c83f76b4f200a03719e3fe3c51ca35e03b429fb0.tar.gz chromium_src-c83f76b4f200a03719e3fe3c51ca35e03b429fb0.tar.bz2 |
Lands fix for 6878 from Yong Shin.
BUG=6878
TEST=see bug
Review URL: http://codereview.chromium.org/19516
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8985 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/views/button_dropdown.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/views/button_dropdown.cc b/chrome/views/button_dropdown.cc index cb2b4b2..5eb553e 100644 --- a/chrome/views/button_dropdown.cc +++ b/chrome/views/button_dropdown.cc @@ -132,6 +132,11 @@ void ButtonDropDown::ShowDropDownMenu(HWND window) { 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 @@ bool ButtonDropDown::GetAccessibleState(VARIANT* state) { } } // namespace views - |