-
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.
Fix a bug where Box's margins weren't included in the measurement (#2429
) We included it in layout but not measurement, which led to bad renders. Also fix UIViewBox to override intrinsicContentSize() so that it can be used as a child of a UIStackView.
- Loading branch information
1 parent
5b11767
commit 19bae88
Showing
8 changed files
with
98 additions
and
18 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...ood.layout.composeui_ComposeUiBoxTest_RTL_testBoxMeasurementIncludesMargins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...redwood.layout.composeui_ComposeUiBoxTest_testBoxMeasurementIncludesMargins.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
3 changes: 3 additions & 0 deletions
3
...ewTests/__Snapshots__/UIViewBoxTestHost/testBoxMeasurementIncludesMargins.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
....cash.redwood.layout.view_ViewBoxTest_RTL_testBoxMeasurementIncludesMargins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
.../app.cash.redwood.layout.view_ViewBoxTest_testBoxMeasurementIncludesMargins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.