diff options
author | xji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 17:11:21 +0000 |
---|---|---|
committer | xji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 17:11:21 +0000 |
commit | 496800d1110314bac436eff6c901e0c22112a695 (patch) | |
tree | 2a83b472d306b8d6502f974d8778d4d239c55365 /chrome | |
parent | 43342a4e037ff29120321269f36923a19a15c82f (diff) | |
download | chromium_src-496800d1110314bac436eff6c901e0c22112a695.zip chromium_src-496800d1110314bac436eff6c901e0c22112a695.tar.gz chromium_src-496800d1110314bac436eff6c901e0c22112a695.tar.bz2 |
This is the merge of Yusuke's patch at:
http://codereview.chromium.org/113583
Draw the big arrow animation on the right side on RTL locales.
1) The item drop down arrow resides on the right hand side of the item and
not the left hand side.
2) The animation is drawn on the left and side instead of the right hand
side.
This patch only fixes the issue 2) above. I'll fix 1) in separate change list.
BUG=http://crbug.com/6103
TBR=Yusuke
Review URL: http://codereview.chromium.org/115609
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16616 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/download_started_animation_win.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/download_started_animation_win.cc b/chrome/browser/views/download_started_animation_win.cc index 6ae160b..799d2ec 100644 --- a/chrome/browser/views/download_started_animation_win.cc +++ b/chrome/browser/views/download_started_animation_win.cc @@ -121,8 +121,10 @@ void DownloadStartedAnimationWin::Reposition() { // Align the image with the bottom left of the web contents (so that it // points to the newly created download). gfx::Size size = GetPreferredSize(); + int x = UILayoutIsRightToLeft() ? + tab_contents_bounds_.right() - size.width() : tab_contents_bounds_.x(); popup_->MoveWindow( - tab_contents_bounds_.x(), + x, static_cast<int>(tab_contents_bounds_.bottom() - size.height() - size.height() * (1 - GetCurrentValue())), size.width(), |