From d89677442b42150944d671bf886e0915bb448f66 Mon Sep 17 00:00:00 2001 From: volzhs Date: Tue, 1 Dec 2020 11:52:37 +0900 Subject: [PATCH] Update page value properly of ScrollContainer --- scene/gui/scroll_container.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/scroll_container.cpp b/scene/gui/scroll_container.cpp index 62ccd55e89c..3a54ac74430 100644 --- a/scene/gui/scroll_container.cpp +++ b/scene/gui/scroll_container.cpp @@ -431,6 +431,7 @@ void ScrollContainer::update_scrollbars() { v_scroll->set_max(min.height); if (hide_scroll_v) { + v_scroll->set_page(size.height); v_scroll->hide(); scroll.y = 0; } else { @@ -446,6 +447,7 @@ void ScrollContainer::update_scrollbars() { h_scroll->set_max(min.width); if (hide_scroll_h) { + h_scroll->set_page(size.width); h_scroll->hide(); scroll.x = 0; } else {