Skip to content

[Fix] Always render all slots #63

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

Merged
merged 1 commit into from
Aug 16, 2018
Merged

[Fix] Always render all slots #63

merged 1 commit into from
Aug 16, 2018

Conversation

themeler
Copy link
Contributor

@themeler themeler commented Aug 16, 2018

List height is determined by item height and visible items number (remain prop) and this works flawless as long as this number is {Integer}. But... when remain prop is set dynamically to {Float} (for ex.: list fills all available vertical space in UI), last item in scrollable list won't be rendered (for ex.: delta.end can equal 58.6 for 59 items, so only 58 slots are rendered).

This solution fixes the problem.

List height is determined by item height and visible items number (`remain` prop) and this works flawless as long as this number is {Integer}. But... when `remain` prop is set dynamically to {Float} (for ex.: list fills all available vertical space in UI), last item in scrollable list won't be rendered (for ex.: `delta.end' can equal `58.6` for `59` items, so only 58 slots are rendered).

This solution fixes the problem.
@tangbc tangbc merged commit 7fc854f into tangbc:master Aug 16, 2018
@tangbc
Copy link
Owner

tangbc commented Aug 16, 2018

Thanks!

I have published v1.2.8 for this fix.

@themeler
Copy link
Contributor Author

themeler commented Aug 16, 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