|
| 1 | +From 567930b5887c80f666433ba78810cab37cc1f680 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Marek Vasut < [email protected]> |
| 3 | +Date: Wed, 1 Mar 2023 23:54:47 +0100 |
| 4 | +Subject: [PATCH] Reduce minimum browser window width to 480px |
| 5 | + |
| 6 | +The TST043015CNHX panel is a 480x272 panel. Chromium browser limits the |
| 7 | +minimum window width to 500px since commits: |
| 8 | + |
| 9 | +6b0ecc1e4532c ("Set lower bound on contents pane size.") |
| 10 | +580d6900dc7fc ("In tab dragging, the window size should be larger than its minimum size.") |
| 11 | + |
| 12 | +To make chromium browser usable on those tiny panels as well, reduce |
| 13 | +the minimum window width to 480px. The upstreaming of this change is |
| 14 | +in progress. |
| 15 | + |
| 16 | +Upstream-Status: Pending |
| 17 | +Signed-off-by: Marek Vasut < [email protected]> |
| 18 | +--- |
| 19 | + chrome/browser/ui/views/frame/browser_view_layout.h | 2 +- |
| 20 | + 1 file changed, 1 insertion(+), 1 deletion(-) |
| 21 | + |
| 22 | +diff --git a/chrome/browser/ui/views/frame/browser_view_layout.h b/chrome/browser/ui/views/frame/browser_view_layout.h |
| 23 | +index 9fc925e06e5e9..9346f321476c3 100644 |
| 24 | +--- a/chrome/browser/ui/views/frame/browser_view_layout.h |
| 25 | ++++ b/chrome/browser/ui/views/frame/browser_view_layout.h |
| 26 | +@@ -48,7 +48,7 @@ class BrowserViewLayout : public views::LayoutManager { |
| 27 | + // very small window, even on large monitors (which is why a minimum height is |
| 28 | + // not specified). This value is used for the main browser window only, not |
| 29 | + // for popups. |
| 30 | +- static constexpr int kMainBrowserContentsMinimumWidth = 500; |
| 31 | ++ static constexpr int kMainBrowserContentsMinimumWidth = 480; |
| 32 | + |
| 33 | + // |browser_view| may be null in tests. |
| 34 | + BrowserViewLayout(std::unique_ptr<BrowserViewLayoutDelegate> delegate, |
| 35 | +-- |
| 36 | +2.39.2 |
| 37 | + |
0 commit comments