Commit 476bd9d8 authored by Donn Denman's avatar Donn Denman Committed by Commit Bot

[Overlay][TTS] Fix RTL position of open-tab icon.

Fixes the positioning of the open-in-tab icon in the new layout.

BUG=1016976

Change-Id: I8d632200063ba35076af140321d8e14d9be53a3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1888400
Auto-Submit: Donn Denman <donnd@chromium.org>
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#710983}
parent e1bc2730
......@@ -292,7 +292,9 @@ void OverlayPanelLayer::SetProperties(
float spacing_between_icons = 2 * bar_margin_side;
float margin_from_close_icon = close_icon_width + spacing_between_icons;
if (is_rtl) {
open_tab_left = close_icon_left + margin_from_close_icon;
open_tab_left = close_icon_resource_id_ == kInvalidResourceID
? close_icon_left
: close_icon_left + margin_from_close_icon;
} else {
open_tab_left = close_icon_left - margin_from_close_icon;
}
......
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