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

[ASCellNode] Remove check to fix layout issues #1578

Merged
merged 1 commit into from
Apr 22, 2016

Conversation

tomizimobile
Copy link
Contributor

As discussed in Slack (starting here: https://asyncdisplaykit.slack.com/archives/general/p1461252947000266) there can be layout issues with ASCellNodes in an ASCollectionView. The scenario uses a cell that loads an image from the network, and the size of the image is unknown, so a default aspect ratio is used for layout purposes. When the image loads, the cell is resized using setNeedsLayout(). This can occasionally cause cells to overlap, or for there to be large gaps between cells. Removing the check for self.isNodeLoaded resolves the issue.

…des in an ASCollectionView when being resized after calling `setNeedsLayout()`
@appleguy appleguy added this to the 1.9.8 milestone Apr 22, 2016
@appleguy appleguy merged commit 450c12e into facebookarchive:master Apr 22, 2016
aimalygin pushed a commit to aimalygin/AsyncDisplayKit that referenced this pull request Sep 23, 2019
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.

3 participants