diff --git a/meta-chromium/recipes-browser/chromium/chromium-gn.inc b/meta-chromium/recipes-browser/chromium/chromium-gn.inc index 9aad5dcac..d7b2eb939 100644 --- a/meta-chromium/recipes-browser/chromium/chromium-gn.inc +++ b/meta-chromium/recipes-browser/chromium/chromium-gn.inc @@ -23,6 +23,7 @@ SRC_URI += " \ file://0013-Fix-html_minifier-script-for-node-v12.patch \ file://0015-drop-gsimple-template-names.patch \ file://0016-cast-to-bool-to-avoid-constexpr-error.patch \ + file://0017-Reduce-minimum-browser-window-width-to-480px.patch \ " SRC_URI:append:libc-musl = "\ diff --git a/meta-chromium/recipes-browser/chromium/files/0017-Reduce-minimum-browser-window-width-to-480px.patch b/meta-chromium/recipes-browser/chromium/files/0017-Reduce-minimum-browser-window-width-to-480px.patch new file mode 100644 index 000000000..55fa86eb6 --- /dev/null +++ b/meta-chromium/recipes-browser/chromium/files/0017-Reduce-minimum-browser-window-width-to-480px.patch @@ -0,0 +1,37 @@ +From 567930b5887c80f666433ba78810cab37cc1f680 Mon Sep 17 00:00:00 2001 +From: Marek Vasut +Date: Wed, 1 Mar 2023 23:54:47 +0100 +Subject: [PATCH] Reduce minimum browser window width to 480px + +The TST043015CNHX panel is a 480x272 panel. Chromium browser limits the +minimum window width to 500px since commits: + +6b0ecc1e4532c ("Set lower bound on contents pane size.") +580d6900dc7fc ("In tab dragging, the window size should be larger than its minimum size.") + +To make chromium browser usable on those tiny panels as well, reduce +the minimum window width to 480px. The upstreaming of this change is +in progress. + +Upstream-Status: Pending +Signed-off-by: Marek Vasut +--- + chrome/browser/ui/views/frame/browser_view_layout.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/chrome/browser/ui/views/frame/browser_view_layout.h b/chrome/browser/ui/views/frame/browser_view_layout.h +index 9fc925e06e5e9..9346f321476c3 100644 +--- a/chrome/browser/ui/views/frame/browser_view_layout.h ++++ b/chrome/browser/ui/views/frame/browser_view_layout.h +@@ -48,7 +48,7 @@ class BrowserViewLayout : public views::LayoutManager { + // very small window, even on large monitors (which is why a minimum height is + // not specified). This value is used for the main browser window only, not + // for popups. +- static constexpr int kMainBrowserContentsMinimumWidth = 500; ++ static constexpr int kMainBrowserContentsMinimumWidth = 480; + + // |browser_view| may be null in tests. + BrowserViewLayout(std::unique_ptr delegate, +-- +2.39.2 +