forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "[Read Anything] Set maximum side panel width during resizing."
This is a reland of commit 7fc7a9b What changed: Use content_container rather than content_web_view for the maximum width calculation of side panel. Content_container also includes dev tools, while content_web_view does not. Side panel computation should be based on the entire contents, including dev tools. Original change's description: > [Read Anything] Set maximum side panel width during resizing. > > Current side panel resizing rules: > 1. The minimum browser window width is 500 > (kMainBrowserContentsMinimumWidth). > 2. The minimum side panel width is 320. > 3. The side panel can be widened up until it leaves 500 - 320 = 180 > in the main web contents. > > Proposed side panel resizing rules: > 1. The minimum window width remains at its current 500. > 2. The minimum main web contents width remains at its current 180. > 3. At 500px, the side panel is 320 and the main web contents is > 180px, as before the proposal. > 4. Between window width = 500 to 820, the side panel remains at > 320px and the main contents increases in width. > 5. At window width > 820, side panel can now be widened. It cannot > go wider than a width that would keep the main contents at least > at 500. > > The motivation for this change is that the current behavior, which > allows side panel to be resized up to leaving the main web contents > at 180, even when the browser window size is very large: > https://screenshot.googleplex.com/9Fr9axFE4hfJWFE. For Read Anything > we would like to remove this possibility. > > For more context and alternatives, see > https://docs.google.com/document/d/1qfuhKHWrveRc5UQ37KdFGMDvt2JypvyU_4h8ejNfips/edit# > > Bug: 1329585, 1266555 > Change-Id: I166760e168809db6400e12c5c359ef681c7879d3 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4000980 > Reviewed-by: Peter Boström <pbos@chromium.org> > Commit-Queue: Abigail Klein <abigailbklein@google.com> > Cr-Commit-Position: refs/heads/main@{#1076212} Bug: 1329585, 1266555 Change-Id: Ic15fa8d951da9bb7b74675d33d112131477a5bb5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4098251 Reviewed-by: Peter Boström <pbos@chromium.org> Commit-Queue: Abigail Klein <abigailbklein@google.com> Cr-Commit-Position: refs/heads/main@{#1082187}
- Loading branch information
Abigail Klein
authored and
Chromium LUCI CQ
committed
Dec 13, 2022
1 parent
2c353f3
commit 158e380
Showing
3 changed files
with
135 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters