1
0
Fork 0

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:
Jason Knight 2022-07-21 12:14:59 -06:00
parent b33d3d6974
commit b73d2980b7
1 changed files with 1 additions and 0 deletions

View File

@ -304,6 +304,7 @@ void ScrollContainer::_update_dimensions() {
fit_child_in_rect(c, r);
}
update_scrollbars();
update();
}