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

Fix slow resize performance by changing rowEnd calculation by adding rowsInRect to rowBegin #182

Merged
merged 1 commit into from
Sep 14, 2016

Conversation

dceballos
Copy link
Contributor

Hi,

I've found an issue where the window resize performance of the GridLayout is very poor when dealing with large collections. This is most noticeable as the scroll offset gets higher.

I've traced the issue to an improper calculation for the rowEnd value inside - (NSRange)rowsInRect:(CGRect)rect fromSection:(JNWCollectionViewGridLayoutSection *)section

I've changed the calculation slightly and fixed the issue in this pull request.

Cheers,
Daniel

@jwilling
Copy link
Owner

Nice, thank you for the fix!

@jwilling jwilling merged commit 6724b19 into jwilling:master Sep 14, 2016
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.

2 participants