Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalidate layouts more aggressively when transitioning with animation #476

Merged
merged 2 commits into from
Jul 27, 2017

Conversation

Adlai-Holler
Copy link
Member

This is a further fix to #464 that addresses the additional case mentioned in #463 as a follow-up.

transitionLayoutWithSizeRange is now an unconditional layout invalidation, unless the transition is canceled using the pre-existing logic.

As ridealongs, I added a detailedLayoutDescription property to ASDisplayNode that can be useful when debugging, and I fixed two tiny instances of stale code that caused build errors when verbose logging was enabled. cc @appleguy as this new property may be particularly handy for you, as LLDB does not play well with the C++ structs we use for display node layouts.

…debug method, fix some build errors when verbose logging
Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll keep thinking about this case, but it does make sense if we consider layout transition as -setNeedsLayoutAnimated:

Let's get this in and test more. Thanks for working on it 🙏

@Adlai-Holler
Copy link
Member Author

Thanks for reviewing this while on vacation. I hope it didn’t interfere too badly.

@Adlai-Holler Adlai-Holler merged commit 01c14f0 into master Jul 27, 2017
@Adlai-Holler Adlai-Holler deleted the AHMoreInvalidation branch July 27, 2017 05:28
@appleguy
Copy link
Member

appleguy commented Jul 27, 2017 via email

bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
TextureGroup#476)

* Be more aggressive at invalidating layouts during transitions, add a debug method, fix some build errors when verbose logging

* Add a changelog entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants