I have a Panel which has a UIScrollView component on it, with a ScrollBar sibling.
Inside the Panel, I have a UITable widget with a list of things inside.
- ScrollBar
- Panel
- UITable
- Item1
- Item2
- Item3...
I want to be able to scroll this list, however I encounter several problems:
1) If I anchor the table to the top and bottom of the scroll view, I cannot scroll anymore, and I can see in the editor that the contents of the table are always repositionned, although an orange rectangle indicates that the area should be scrolled.
2) If I don't anchor the table, I can scroll it, even if there is no overflow. This causes the contents to be moved around the center of the ScrollView just because the ScrollBar can be dragged across a few pixels no matter what. I don't want this to happen, I want the items to start at the bottom of the panel's virtual area. I noticed the size property of the scrollbar is always below 1 (like 0.995).
3) If I set the ScrollBar to "only when needed", it auto-disappears when not hovered, and if the panel is resized it doesn't fades out and we can still drag it before it disappears. In addition, I don't want to hide the scrollbar anyways. Even if I hide it, the contents of the box still move around the middle when I resize it like in 2).
Any ideas how to fix this?