Skip to content

Commit

Permalink
[TabStripRedesign] Fix new tab button anchoring on tab close
Browse files Browse the repository at this point in the history
Fix new tab button anchoring on tab close.
-Only affects TSR enabled & anchoring disabled.

Before: https://drive.google.com/file/d/1MjVqrNRUKabfGDsiN5HTsm5Wg9b636-k/view?usp=drive_link
After: https://drive.google.com/file/d/1uyQOzLifCQgEpApocat3Qxq2ZQzNBb8b/view?usp=drive_link

(cherry picked from commit 0e045fe)

Bug: 1447109
Change-Id: I2cb5ac164dec1ac87c1c0b8e2b4554319f0ef991
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4573732
Reviewed-by: Theresa Sullivan <twellington@chromium.org>
Commit-Queue: Neil Coronado <nemco@google.com>
Cr-Original-Commit-Position: refs/heads/main@{#1150940}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4582707
Reviewed-by: Zhe Li <zheliooo@google.com>
Commit-Queue: Zhe Li <zheliooo@google.com>
Auto-Submit: Neil Coronado <nemco@google.com>
Cr-Commit-Position: refs/branch-heads/5790@{#233}
Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
  • Loading branch information
Neil Coronado authored and Chromium LUCI CQ committed Jun 1, 2023
1 parent 847ce5b commit 29cc5cc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1267,7 +1267,7 @@ private void resizeStripOnTabClose(int tabId, Tab nextTab) {
}

// 4. Add new tab button offset animation.
if (!ChromeFeatureList.sTabStripRedesign.isEnabled()) {
if (isNewTabButtonAnchorDisabled()) {
CompositorAnimator newTabButtonOffsetAnimator = updateNewTabButtonState(true);
if (newTabButtonOffsetAnimator != null) {
tabStripAnimators.add(newTabButtonOffsetAnimator);
Expand Down

0 comments on commit 29cc5cc

Please sign in to comment.