yoga: YogaKit doesn't remember the origin of the root view.
Report
When you apply layout to a root view of layout with an origin that is not CGPointZero
, in some scenarios it seems that this would be the incorrect behavior.
- I have searched existing issues and this is not a duplicate
Issues and Steps to Reproduce
- Clone or download this
- Go into
YogaKit
directory and runpod install
. - Open the workspace and run the app.
- Click the last cell in table view.
- Click the button at the bottom of the screen.
Expected Behavior
The bordered view should stay on screen (ideally).
Actual Behavior
The bordered view’s .frame.origin is set to (0,0).
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (19 by maintainers)
@dshahidehpour maybe we should add a comment to
applyLayout
which documents this?