From 250fc74ea4d992fb23fa9b04c5e2e9f5a4dcedb8 Mon Sep 17 00:00:00 2001 From: Sangwoo Ko Date: Wed, 13 May 2026 11:24:59 +0900 Subject: [PATCH] [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. --- .../views/frame/layout/brave_browser_view_tabbed_layout_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/ui/views/frame/layout/brave_browser_view_tabbed_layout_impl.cc b/browser/ui/views/frame/layout/brave_browser_view_tabbed_layout_impl.cc index 4e04ad62c5e..44794b280e1 100644 --- a/browser/ui/views/frame/layout/brave_browser_view_tabbed_layout_impl.cc +++ b/browser/ui/views/frame/layout/brave_browser_view_tabbed_layout_impl.cc @@ -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