Commit 4f4df5f4 authored by Manu Cornet's avatar Manu Cornet Committed by Commit Bot

CrOS Shelf: fix login shelf hit test rects in RTL

Bug: 933044
Change-Id: Ibeb706b1ea2aa91a4ddd6dd83bff35cb05139f4c
Reviewed-on: https://chromium-review.googlesource.com/c/1492039Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Manu Cornet <manucornet@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636607}
parent 8927b816
......@@ -295,7 +295,8 @@ bool ShelfWidget::GetHitTestRects(aura::Window* target,
// of the shelf.
DCHECK(login_shelf_view_->visible());
gfx::Rect login_view_button_bounds =
login_shelf_view_->get_button_union_bounds();
login_shelf_view_->ConvertRectToWidget(login_shelf_view_->GetMirroredRect(
login_shelf_view_->get_button_union_bounds()));
aura::Window* source = login_shelf_view_->GetWidget()->GetNativeWindow();
aura::Window::ConvertRectToTarget(source, target->parent(),
&login_view_button_bounds);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment