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.

Issues and Steps to Reproduce

  1. Clone or download this
  2. Go into YogaKit directory and run pod install.
  3. Open the workspace and run the app.
  4. Click the last cell in table view.
  5. 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)

Most upvoted comments

@dshahidehpour maybe we should add a comment to applyLayout which documents this?