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

Reduce unnecessary renders for CellMeasurer in Grid #969

Merged
merged 2 commits into from
Jan 15, 2018

Conversation

bvaughn
Copy link
Owner

@bvaughn bvaughn commented Jan 15, 2018

I realized this morning that when CellMeasurer is used, it causes CellSizeAndPositionManager to always render every cell in a given column or row regardless of whether measurements have already been collected for those cells. This was not the intent of that code.

I believe I've fixed this to only render all cells initially (per the need explained via the inline comments). Local smoke testing seems good. Automated tests pass.

Repository owner deleted a comment from codecov-io Jan 15, 2018
Repository owner deleted a comment from codecov-io Jan 15, 2018
@bvaughn
Copy link
Owner Author

bvaughn commented Jan 15, 2018

I feel good enough about this to move forward and try it. Will roll back if necessary.

@bvaughn bvaughn merged commit 3faeb4e into master Jan 15, 2018
@bvaughn bvaughn deleted the improved-cell-measurer-batching branch January 15, 2018 20:12
@damusnet
Copy link

FWIW, I pulled the branch in our project where we use CellMeasurer and nothing broke.

And BTW, thanks for this awesome library :)

@bvaughn
Copy link
Owner Author

bvaughn commented Jan 15, 2018 via email

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