Commit 69bb24ec authored by Ahmed Mehfooz's avatar Ahmed Mehfooz Committed by Commit Bot

Do not flip feature pod icons for RTL

Bug: 1055265
Change-Id: I252dc8300457046dfdbc49d438adc821b6069243
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2545272Reviewed-by: default avatarTetsui Ohkubo <tetsui@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828565}
parent 693f0f09
...@@ -55,6 +55,7 @@ FeaturePodIconButton::FeaturePodIconButton(PressedCallback callback, ...@@ -55,6 +55,7 @@ FeaturePodIconButton::FeaturePodIconButton(PressedCallback callback,
: views::ImageButton(std::move(callback)), is_togglable_(is_togglable) { : views::ImageButton(std::move(callback)), is_togglable_(is_togglable) {
SetPreferredSize(kUnifiedFeaturePodIconSize); SetPreferredSize(kUnifiedFeaturePodIconSize);
SetBorder(views::CreateEmptyBorder(kUnifiedFeaturePodIconPadding)); SetBorder(views::CreateEmptyBorder(kUnifiedFeaturePodIconPadding));
SetFlipCanvasOnPaintForRTLUI(false);
SetImageHorizontalAlignment(ALIGN_CENTER); SetImageHorizontalAlignment(ALIGN_CENTER);
SetImageVerticalAlignment(ALIGN_MIDDLE); SetImageVerticalAlignment(ALIGN_MIDDLE);
GetViewAccessibility().OverrideIsLeaf(true); GetViewAccessibility().OverrideIsLeaf(true);
......
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