Browse Source

Update page value properly of ScrollContainer

(cherry picked from commit d89677442b42150944d671bf886e0915bb448f66)
volzhs 4 years ago
parent
commit
1663a9e87c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scene/gui/scroll_container.cpp

+ 2 - 2
scene/gui/scroll_container.cpp

@@ -423,7 +423,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 {
@@ -440,7 +440,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 {