summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2017-11-13 12:11:08 -0200
committerMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2017-11-13 12:15:48 -0200
commitf2f18261c390646f58e7a21a4437002e63e34cc3 (patch)
tree5bbc9dde943e00eae63ba4775a71f62c12fa2719 /scene/gui
parentf6232efed99d8190864564a0886764d88e2a58dc (diff)
Small arrangement in ScrollContainer.
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/scroll_container.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/gui/scroll_container.cpp b/scene/gui/scroll_container.cpp
index 1ad1e3f638..9022d67a4a 100644
--- a/scene/gui/scroll_container.cpp
+++ b/scene/gui/scroll_container.cpp
@@ -347,12 +347,11 @@ void ScrollContainer::update_scrollbars() {
} else {
v_scroll->show();
+ v_scroll->set_max(min.height);
+ v_scroll->set_page(size.height - hmin.height);
scroll.y = v_scroll->get_value();
}
- v_scroll->set_max(min.height);
- v_scroll->set_page(size.height - hmin.height);
-
if (!scroll_h || min.width <= size.width - vmin.width) {
h_scroll->hide();