Skip to content

Commit

Permalink
Update page value properly of ScrollContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
volzhs committed Dec 1, 2020
1 parent 04bef80 commit d896774
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/scroll_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit d896774

Please sign in to comment.