WebUI Tab Strip: Keep new tab button fixed
The tab strip's height can change while it is animating in and out but its final height is the sum of var(--tabstrip-tab-height) and 2 of var(--tabstrip-tab-list-vertical-padding). Hard-coding the top value of the new tab button to 50% of this ensures the button stays fixed in the middle of the tab strip, even if the height is being animated. Change-Id: I555052195eaf7e2c97b212817debd73093f6d630 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2076543Reviewed-by:Esmael Elmoslimany <aee@chromium.org> Commit-Queue: John Lee <johntlee@chromium.org> Cr-Commit-Position: refs/heads/master@{#746233}
Showing
Please register or sign in to comment