Only call -layout and -layoutDidFinish if the node is already loaded (#285)

* Only call -layout and -layoutDidFinish if the node is already loaded

* Minor change

* Update CHANGELOG
This commit is contained in:
Huy Nguyen
2017-05-19 15:06:26 +01:00
committed by GitHub
parent 50af2e92db
commit 6aa5ad7703
4 changed files with 17 additions and 7 deletions

View File

@@ -234,7 +234,9 @@ FOUNDATION_EXPORT NSString * const ASRenderingEngineDidDisplayNodesScheduledBefo
- (void)__setNeedsDisplay;
/**
* Called from [CALayer layoutSublayers:]. Executes the layout pass for the node
* Called whenever the node needs to layout its subnodes and, if it's already loaded, its subviews. Executes the layout pass for the node
*
* This method is thread-safe but asserts thread affinity.
*/
- (void)__layout;