Commit b476de22 authored by Taylor Bergquist's avatar Taylor Bergquist Committed by Commit Bot

Ensure tab visibility is updated when tabstrip width changes.

Change-Id: I48d801c05ed4d080c273ba6ea021ee2e82ac1780
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2282839Reviewed-by: default avatarConnie Wan <connily@chromium.org>
Commit-Queue: Taylor Bergquist <tbergquist@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785988}
parent c7e555ef
...@@ -2128,6 +2128,7 @@ void TabStrip::Layout() { ...@@ -2128,6 +2128,7 @@ void TabStrip::Layout() {
// It should be as wide as possible subject to the above constraints. // It should be as wide as possible subject to the above constraints.
const int width = std::min(max_width, std::max(min_width, available_width)); const int width = std::min(max_width, std::max(min_width, available_width));
SetBounds(0, 0, width, height()); SetBounds(0, 0, width, height());
SetTabVisibility();
} }
// Only do a layout if our size changed. // Only do a layout if our size changed.
......
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