From e0d0eea3508ac320a0234ca7c915de4e073efb83 Mon Sep 17 00:00:00 2001 From: jj Date: Mon, 16 Feb 2026 20:57:26 +0000 Subject: [PATCH] patches/helium: add workaround for huge toolbar with vertical tabs --- .../fix-oversized-vertical-tabs-toolbar.patch | 13 +++++++++++++ patches/series | 1 + 2 files changed, 14 insertions(+) create mode 100644 patches/helium/windows/fix-oversized-vertical-tabs-toolbar.patch diff --git a/patches/helium/windows/fix-oversized-vertical-tabs-toolbar.patch b/patches/helium/windows/fix-oversized-vertical-tabs-toolbar.patch new file mode 100644 index 0000000..85ac04d --- /dev/null +++ b/patches/helium/windows/fix-oversized-vertical-tabs-toolbar.patch @@ -0,0 +1,13 @@ +--- a/chrome/browser/ui/views/frame/browser_frame_view_win.cc ++++ b/chrome/browser/ui/views/frame/browser_frame_view_win.cc +@@ -692,6 +692,10 @@ int BrowserFrameViewWin::TitlebarHeight( + } + + int BrowserFrameViewWin::GetFrameHeight() const { ++ if (GetBrowserView()->ShouldDrawVerticalTabStrip()) { ++ return GetBrowserView()->toolbar()->GetPreferredSize().height(); ++ } ++ + if (GetBrowserView()->GetTabStripVisible()) { + // TODO(crbug.com/437915973): Account for the vertical tab region when using + // GetMinimumSize(). diff --git a/patches/series b/patches/series index 8f84d48..2588b86 100644 --- a/patches/series +++ b/patches/series @@ -22,3 +22,4 @@ ungoogled-chromium/windows/windows-fix-remove-unused-preferences-fields.patch ungoogled-chromium/windows/windows-fix-missing-includes.patch helium/windows/change-branding.patch +helium/windows/fix-oversized-vertical-tabs-toolbar.patch