Skip to content

Commit 2110480

Browse files
Marek Vasutotavio
authored andcommitted
chromium: 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. Signed-off-by: Marek Vasut <marex@denx.de>
1 parent 0220e93 commit 2110480

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

meta-chromium/recipes-browser/chromium/chromium-gn.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ SRC_URI += "\
3333
file://0016-Disable-crabbyavif-to-fix-build-errors.patch \
3434
file://0017-rust-Use-adler-instead-of-adler2.patch \
3535
file://0018-third_party-node-update_node_binaries-Update-nodejs-.patch \
36+
file://0019-Reduce-minimum-browser-window-width-to-480px.patch \
3637
"
3738

3839
# Missing third_party sources.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From 567930b5887c80f666433ba78810cab37cc1f680 Mon Sep 17 00:00:00 2001
2+
From: Marek Vasut <marex@denx.de>
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 <marex@denx.de>
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

Comments
 (0)