summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-12-03 12:57:53 +0100
committerGitHub <noreply@github.com>2020-12-03 12:57:53 +0100
commitc14341a7dcb1761132e4ac7d8df0b23a4b27f3c9 (patch)
tree1021130bf5048e82bb890b8034d3a4ac9852f542
parentc6965961c723c3e79736083b035ecfb695238e43 (diff)
parentd89677442b42150944d671bf886e0915bb448f66 (diff)
Merge pull request #43999 from volzhs/update-scrollcontainer-page-value-master
Update page value properly of ScrollContainer
-rw-r--r--scene/gui/scroll_container.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/scroll_container.cpp b/scene/gui/scroll_container.cpp
index 62ccd55e89..3a54ac7443 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 {