I am dynamically resizing items in UIGrid and having problems with these two components. UIScrollbar is not repositioning to accomodate for newly added/deleted elements, the only way I can get it to work is if I change standalone resolution and then change it back original.
edit: I am calling scrlView.UpdateScrollbars(true); after I've repopulated the UIGrid
edit: the problem is the timing issue, items are added after the scroll view is updated. I don't know what is a clean way to resolve this issue... because I have a function that populates UIGrid by creating new items from prefabs and instantly after that calls scrrollView.UpdatePosition but I am guessing the panel doesn't acknowledge new bounds until next frame or something. It's somewhat frustrating that there is no built-in functionality to notify the scrollview that it needs to update (is there?), perhaps something like boundsChanged flag/event would be useful here. Or scrollView directly could keep track whether bounds of its contents were changed every frame.