I have a ScrollRect with an inner grid of pictures. To to the right is a scroll bar. I can load in the content just fine but when I do so the scrollbar always zooms to the bottom of the content. This is mildly infuriating.
I have tried dabbling with all the settings and nothing seems to work right. I have run into similar problems whenever I use the scroll bar. It seems to override the scroll panels default logic and make it act buggy.
To reiterate, I get the expected behavior If I remove the scroll bar. If I include a scroll bar my positioning is always in error. I have run into other errors using the scroll bar (objects placed incorrectly ect).
Please let me know a review of the ScrollBar is on the todo list.
Have you checked the scroll bar direction? I noticed in the Gif that you never showed the direction of the scrollbar. There should be a direction on it that says TopToBottom or BottomToTop. The one you want is actually BottomToTop and not TopToBottom. I know it is weird, but the BottomToTop sets the start position of the scroll bar at the top, where as TopToBottom sets the start position of the scrollbar at the bottom.
I’ve encountered this as well. As a workaround I set the value of the scrollbar back to 1 after it’s done updating the size to put it back at the top.
Thanks for the bug report. The bug has been fixed a little while ago and the fix will be in beta 19.
From then on you’ll be able to control from which direction content should expand. If you want it to expand from the top and down, both the anchors and the pivot of the Container/Content RectTransform should be set to the top.