forked from TextureGroup/Texture
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ASDisplayNode+Layout] In layoutThatFits:, check and use _pending lay…
…out if valid. (TextureGroup#413) I believe this check is supposed to be here. Unit tests pass with it in place. Without it, calling layoutThatFits: (as ASDataController does) and then calling it again later (as ASCollectionNode does when answering the sizeForItem: call) will recompute the layout, potentially on main. This seems to have more of an impact / benefit for Yoga layouts, but I don't think its benefit is exclusive to them.
- Loading branch information
1 parent
ad679c3
commit 1f8ee3f
Showing
1 changed file
with
14 additions
and
11 deletions.
There are no files selected for viewing
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