BREAKING CHANGE: rename applyLayout to applyLayoutPreservingOrigin.

Summary: Will update on Monday

Reviewed By: emilsjolander

Differential Revision: D4545786

fbshipit-source-id: f8189d82f1c64cd1eac532fd2dfaa9aea35d6004
This commit is contained in:
Dustin Shahidehpour
2017-02-11 11:16:14 -08:00
committed by Facebook Github Bot
parent 063f65d065
commit 4f6924a0c1
8 changed files with 91 additions and 76 deletions

View File

@@ -22,6 +22,6 @@ Yoga relies on `UIView` subviews to build up its internal layout tree. However,
It is also possible to query the number of children **included** in layout via `numberOfChildren`.
### Layout
To apply a layout to a view (and its' subviews) you need to call `[view.yoga applyLayout]`. This will do a layout calculation (if needed) and apply the calculated frames to every view included in the layout.
To apply a layout to a view (and its' subviews) you need to call `[view.yoga applyLayoutPreservingOrigin:NO]`. This will do a layout calculation (if needed) and apply the calculated frames to every view included in the layout.
In the event that you need to another layout pass on a view you can mark it dirty via `[view.yoga markDirty]`.