[cr149] Hide vertical tab strip host view when vertical tabs are not shown.

Specify visibility to false when adding vertical tab strip host view to layout.
This commit is contained in:
Sangwoo Ko
2026-05-22 16:57:40 -04:00
committed by Max Karolinskiy
parent ed61653f89
commit 250fc74ea4
@@ -185,7 +185,7 @@ BraveBrowserViewTabbedLayoutImpl::CalculateProposedLayout(
// This is Brave specific view so the layout shouldn't be populated by
// upstream's logic.
CHECK(!layout.GetLayoutFor(views().vertical_tab_strip_host));
layout.AddChild(views().vertical_tab_strip_host, gfx::Rect());
layout.AddChild(views().vertical_tab_strip_host, gfx::Rect(), false);
}
// Adjust infobar layout if vertical tabs are shown. i.e. sets insets to