Commit 87685fa2 authored by Charlene Yan's avatar Charlene Yan Committed by Commit Bot

[Tab Groups Collapse] Kinda fix tab group underline on collapsed groups.

This makes collapse looks slightly more useful. Without this the
underline make the tab group still look not collapsed.

This will need more work to spec, but thought it was a nice update.

Bug: 1018230
Change-Id: I22343f34aea7d9f42e2a1cfd8205643973e50686
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2207504
Commit-Queue: Charlene Yan <cyan@chromium.org>
Reviewed-by: default avatarConnie Wan <connily@chromium.org>
Cr-Commit-Position: refs/heads/master@{#769933}
parent b7f1e7cb
...@@ -46,6 +46,9 @@ void TabGroupViews::UpdateVisuals() { ...@@ -46,6 +46,9 @@ void TabGroupViews::UpdateVisuals() {
} }
gfx::Rect TabGroupViews::GetBounds() const { gfx::Rect TabGroupViews::GetBounds() const {
if (tab_strip_->controller()->GetGroupCollapsedState(group_))
return header_->bounds();
const Tab* last_tab = GetLastTabInGroup(); const Tab* last_tab = GetLastTabInGroup();
if (!last_tab) if (!last_tab)
return header_->bounds(); return header_->bounds();
......
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