Browse Source

Revert "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 reverts commit b73d2980b7e6a823f5065315355f7f7af20f6660.

This caused a regression. Fixes #63417.
Rémi Verschelde 3 years ago
parent
commit
be5051422b
1 changed files with 0 additions and 1 deletions
  1. 0 1
      scene/gui/scroll_container.cpp

+ 0 - 1
scene/gui/scroll_container.cpp

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