From be5051422b138a43f6fb2762d4688e0ed3aef57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 25 Jul 2022 11:29:33 +0200 Subject: [PATCH] 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. --- scene/gui/scroll_container.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/scene/gui/scroll_container.cpp b/scene/gui/scroll_container.cpp index cbf2987e838..086eba0d491 100644 --- a/scene/gui/scroll_container.cpp +++ b/scene/gui/scroll_container.cpp @@ -304,7 +304,6 @@ void ScrollContainer::_update_dimensions() { fit_child_in_rect(c, r); } - update_scrollbars(); update(); }