summaryrefslogtreecommitdiffstats
path: root/views/controls/button
diff options
context:
space:
mode:
authoravayvod@chromium.org <avayvod@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 20:56:48 +0000
committeravayvod@chromium.org <avayvod@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 20:56:48 +0000
commitc32f04146677ab69289f661de3236fda5791c953 (patch)
tree5e2bd8a649cf69696ea236bed422898e0e1e8957 /views/controls/button
parent2c58e65c67d21074424eeeb2673a995d42a6614e (diff)
downloadchromium_src-c32f04146677ab69289f661de3236fda5791c953.zip
chromium_src-c32f04146677ab69289f661de3236fda5791c953.tar.gz
chromium_src-c32f04146677ab69289f661de3236fda5791c953.tar.bz2
Fixed alignment of button dropdowns for RTL languages.
BUG=none TEST=Run chrome with LANGUAGE=ar or with --lang=ar. Verify that all status area menus as well as main menu are aligned properly (go to the right, not to the left). Review URL: http://codereview.chromium.org/601032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/button')
-rw-r--r--views/controls/button/button_dropdown.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/views/controls/button/button_dropdown.cc b/views/controls/button/button_dropdown.cc
index a2740ca..a851c84 100644
--- a/views/controls/button/button_dropdown.cc
+++ b/views/controls/button/button_dropdown.cc
@@ -148,10 +148,7 @@ void ButtonDropDown::ShowDropDownMenu(gfx::NativeView window) {
menu_position.set_x(left_bound);
menu_.reset(new Menu2(model_));
- Menu2::Alignment align = Menu2::ALIGN_TOPLEFT;
- if (UILayoutIsRightToLeft())
- align = Menu2::ALIGN_TOPLEFT;
- menu_->RunMenuAt(menu_position, align);
+ menu_->RunMenuAt(menu_position, Menu2::ALIGN_TOPLEFT);
// Need to explicitly clear mouse handler so that events get sent
// properly after the menu finishes running. If we don't do this, then