Skip to content

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