Fix tab visibility when the last inactive tab is in a collapsed group.
Tab widths are cached during UpdateIdealBounds for subsequent calls to GetActiveWidth and GetInactiveWidth. If the last inactive tab in any invocation of UpdateIdealBounds() is in a collapsed group, its width of kTabOverlap will end up being recorded as the inactive tab width. This most prominently manifested as a bug in calculating tab visibility. Bug: 1140388 Change-Id: Ie9ecdbacf49ffdb829f1ff208d4f22e077457b94 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2542769 Commit-Queue: Taylor Bergquist <tbergquist@chromium.org> Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#828414}
Showing
Please register or sign in to comment