-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve our alignment to physical pixel boundaries.
Previously we aligned elements to integral logical pixel boundaries, and relied on the ratio between logical and physical pixels to be integral. This is no longer the case in the wild world of zillions of screen sizes and densities. Our new approach is to leave logical position/size alone until validation, at which point we ensure that our boundaries (top, left, bottom, right) fall on integral physical pixels and then translate those back to an updated logical position and size which are used when laying out deeper children.
- Loading branch information
1 parent
a0a9ebc
commit 45701dd
Showing
2 changed files
with
19 additions
and
3 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