From 496800d1110314bac436eff6c901e0c22112a695 Mon Sep 17 00:00:00 2001 From: "xji@chromium.org" Date: Thu, 21 May 2009 17:11:21 +0000 Subject: 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 --- chrome/browser/views/download_started_animation_win.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome') 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(tab_contents_bounds_.bottom() - size.height() - size.height() * (1 - GetCurrentValue())), size.width(), -- cgit v1.1