You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-07 19:53:17 +00:00
Call update_scrollbars() in sort_children() so the max is set properly so you can set scroll_container.scroll_vertical instantly after adding children to a scroll container.
This commit is contained in:
@@ -312,6 +312,7 @@ void ScrollContainer::_update_dimensions() {
|
||||
fit_child_in_rect(c, r);
|
||||
}
|
||||
|
||||
update_scrollbars();
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user