Scrollbar is not stopping at the bottom of the view #429
-
Hi, floem_scroll_issue.mp4Here is the example repository: Any ideas what I'm doing wrong here? Is #428 somehow related? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This looks like you are using a virtual list. When using a virtual list you need to tell the virtual list the size of each element. If the scroll bar isn't ending at the bottom it's probably because you are passing in the incorrect height to the virtual list |
Beta Was this translation helpful? Give feedback.
Just found this. Note that this example was fixed in #430
The height must have shifted since I wrote this example and now I explicitly fix the height for each item which makes sure this works even if things shift further down the line.
You can see the height of each item was was off by one pixel with the inspector btw. So if this happens again in your own code just inspect the item and make sure what you tell the
v_stack
orvirtual_list
is the correct height.