Commit 675766f5 authored by Tim Song's avatar Tim Song Committed by Commit Bot

Ash Tray: Fix message center layout when UI is RTL.

BUG=1050966

Change-Id: I45aa288e721760fee374e97d38116dd53dec9d39
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2109455Reviewed-by: default avatarAhmed Mehfooz <amehfooz@chromium.org>
Commit-Queue: Tim Song <tengs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751939}
parent 954a2188
...@@ -167,7 +167,8 @@ void UnifiedMessageCenterBubble::UpdatePosition() { ...@@ -167,7 +167,8 @@ void UnifiedMessageCenterBubble::UpdatePosition() {
gfx::Rect anchor_rect = tray_->shelf()->GetSystemTrayAnchorRect(); gfx::Rect anchor_rect = tray_->shelf()->GetSystemTrayAnchorRect();
gfx::Insets tray_bubble_insets = GetTrayBubbleInsets(); gfx::Insets tray_bubble_insets = GetTrayBubbleInsets();
int left_offset = tray_->shelf()->alignment() == ShelfAlignment::kLeft int left_offset = (tray_->shelf()->alignment() == ShelfAlignment::kLeft ||
base::i18n::IsRTL())
? tray_bubble_insets.left() ? tray_bubble_insets.left()
: -tray_bubble_insets.right(); : -tray_bubble_insets.right();
......
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