-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snap-group: Get the closest fixed snap ratio converting to tablet
There are fixed snap ratios in tablet mode, whereas the divider can be at arbitrary positions after resizing the snap group in clamshell mode. When transiting to tablet mode, the arbitrary position needs to be converted to its closest fixed snap ratio. This cl implements and verifies the behavior described above. Demo: http://b/294444834#comment3 Fixed: b/294444834 Test: Added unit test + manual Change-Id: I88c519c84338036144f3112e063114213f0e0b95 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4796542 Reviewed-by: Xiaoqian Dai <xdai@chromium.org> Commit-Queue: Michele Fan <michelefan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1188603}
- Loading branch information
Michele Fan
authored and
Chromium LUCI CQ
committed
Aug 25, 2023
1 parent
e46d92d
commit fbfc779
Showing
4 changed files
with
92 additions
and
20 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
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