-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use different constraints for measure vs layout (#2340)
* Use different constraints for measure vs layout When we measure we treat the inbound dimensions as suggestions. When we layout, we treat them as constants. * Simplify the layout code * Update Compose snapsohts
- Loading branch information
1 parent
1841aed
commit d4ca941
Showing
13 changed files
with
68 additions
and
74 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...mposeui_ComposeUiFlexContainerTest_testChildIsConstrainedToParentWidth[LTR].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...mposeui_ComposeUiFlexContainerTest_testChildIsConstrainedToParentWidth[RTL].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
4 changes: 2 additions & 2 deletions
4
...sts/__Snapshots__/UIViewFlexContainerTestHost/testDynamicContainerSize.both.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...s/__Snapshots__/UIViewFlexContainerTestHost/testDynamicContainerSize.single.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...__/UIViewFlexContainerTestHost/testLayoutWithConstraints_Column_Wrap_Fill.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...__/UIViewFlexContainerTestHost/testLayoutWithConstraints_Column_Wrap_Wrap.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ots__/UIViewFlexContainerTestHost/testLayoutWithConstraints_Row_Fill_Wrap.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ots__/UIViewFlexContainerTestHost/testLayoutWithConstraints_Row_Wrap_Wrap.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
3 changes: 3 additions & 0 deletions
3
...UIViewLazyListAsFlexContainerTestHost/testChildIsConstrainedToParentWidth.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
.../UIViewLazyListAsFlexContainerTestHost/testRecursiveLayoutHandlesResizes.v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.