mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Merge pull request #43999 from volzhs/update-scrollcontainer-page-value-master
Update page value properly of ScrollContainer
This commit is contained in:
commit
c14341a7dc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user