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

Set automaticallyAdjustsContentOffset to ASTableView when view is load #1278

Merged
merged 2 commits into from
Dec 12, 2018

Conversation

strangeliu
Copy link
Contributor

Before ASTableView is loaded, the property automaticallyAdjustsContentOffset is stored on pendingState but never set to view.
This PR may fix this issue #23.

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.

Great catch! And thanks for fixing!

Would you mind updating our test suite to cover this bug as well? I'm looking at this line. It forces the node to load its view before setting automaticallyAdjustsContentOffset, which is why the test didn't catch this bug. Would be great if you change it to node.automaticallyAdjustsContentOffset = YES, which essentially tests if the property will be set to the view when it's loaded later.

Copy link
Contributor

@maicki maicki left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @strangeliu for fixing

@strangeliu
Copy link
Contributor Author

@nguyenhuy I have updated the test suite and it passed

@nguyenhuy
Copy link
Member

Awesome. Thanks again. I’ll merge after CI finishes.

@nguyenhuy nguyenhuy merged commit c6fc05d into TextureGroup:master Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants