mirror of https://github.com/godotengine/godot
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:
parent
b33d3d6974
commit
b73d2980b7
|
|
@ -304,6 +304,7 @@ void ScrollContainer::_update_dimensions() {
|
|||
fit_child_in_rect(c, r);
|
||||
}
|
||||
|
||||
update_scrollbars();
|
||||
update();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue