Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Substantially improve behavior of nested Table & Collection Nodes - #847

Merged
appleguy merged 1 commit into
masterfrom
CollectionAndTableNodes
Nov 15, 2015
Merged

Substantially improve behavior of nested Table & Collection Nodes#847
appleguy merged 1 commit into
masterfrom
CollectionAndTableNodes

Conversation

@appleguy

Copy link
Copy Markdown
Contributor

This ensures memory cleanup happens correctly and introduces a new test project
to support developing new features while stressing tough use cases for correctness.

Debugged an issue where setting the frame on as ASTableNode is not equivalent to setting the frame on that node's view. UITableView apparently depends on setFrame: being called directly on the view instance, and is not able to tolerate setBounds: + setPosition: called on its layer; one of its subviews is never resized in this case. To be safe, I've revised the frame setting process to not use the bounds / position implementation (which is a convenience to enable setting frames with non-identity transforms) for nodes that wrap synchronous UIViews, like ASTableNode, ASCollectionNode, ASScrollNode, and any third-party node created with initWithViewBlock:.

This ensures memory cleanup happens correctly and introduces a new test project
to support developing new features while stressing tough use cases for correctness.
appleguy added a commit that referenced this pull request Nov 15, 2015
Substantially improve behavior of nested Table & Collection Nodes
@appleguy
appleguy merged commit 59d52ce into master Nov 15, 2015
@appleguy
appleguy deleted the CollectionAndTableNodes branch November 15, 2015 00:34
peter-iakovlev pushed a commit to peter-iakovlev/AsyncDisplayKit that referenced this pull request Jul 21, 2018
…ial (facebookarchive#847)

* fix SIMULATE_WEB_RESPONSE not imported facebookarchive#449

* Fix to make rangeMode update in right time

* This is for cases when CollectionNode is created in cell of another collectionNode, the interfaceState(say didEnterVisible) is not called as expected.

It's because interfaceCoalescing alter the time line and cause RangeController update before actual interface applied.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants