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 list height not readjusting if elements are removed. #194

Closed
wants to merge 1 commit into from

Conversation

saulve
Copy link

@saulve saulve commented Apr 28, 2020

Say we have a long list like this, and we want to shorten it with a "Hide" button which will pass only half of the data to the list:
image

After clicking hide, our elements disappeared, however list size hasn't re-adjusted, leaving us with lots of whitespace:
image

It seems that onLayout for rows is called only once, so after initial load we don't recalculate list height in _onUpdateLayouts on line 356. This PR seems to fix this.

@vidmantasz
Copy link

we are having this issue as well

@saulve saulve closed this May 18, 2023
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