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

Conversation

nguyenhuy
Copy link
Contributor

There is a bug in ASTableView that causes unnecessary relayout when the table view width is zero initially. This PR includes the fix for this bug and some minor refactorings.
#758, #753

- During initial configuration of a table view with a zero size, for each cell, there is a mismatch between the widths of its content view and constrained size. However, don't relayout the cell immediately because an initial data loading will be performed shortly afterward.
- Add -triggerFirstLayoutMeasurementForTableView:
- Move -triggerSizeChangeAndAssertRelayoutAllRowsForTableView:newSize to the end of the file.
@nguyenhuy nguyenhuy changed the title [WIP] Fix table view tests Fix table view tests Oct 25, 2015
@appleguy
Copy link
Contributor

Awesome, thank you!

appleguy added a commit that referenced this pull request Oct 25, 2015
@appleguy appleguy merged commit ac0caf3 into facebookarchive:master Oct 25, 2015
aimalygin pushed a commit to aimalygin/AsyncDisplayKit that referenced this pull request Feb 19, 2018
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