You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Update page value properly of ScrollContainer
(cherry picked from commit d89677442b)
This commit is contained in:
@@ -423,7 +423,7 @@ void ScrollContainer::update_scrollbars() {
|
|||||||
|
|
||||||
v_scroll->set_max(min.height);
|
v_scroll->set_max(min.height);
|
||||||
if (hide_scroll_v) {
|
if (hide_scroll_v) {
|
||||||
|
v_scroll->set_page(size.height);
|
||||||
v_scroll->hide();
|
v_scroll->hide();
|
||||||
scroll.y = 0;
|
scroll.y = 0;
|
||||||
} else {
|
} else {
|
||||||
@@ -440,7 +440,7 @@ void ScrollContainer::update_scrollbars() {
|
|||||||
|
|
||||||
h_scroll->set_max(min.width);
|
h_scroll->set_max(min.width);
|
||||||
if (hide_scroll_h) {
|
if (hide_scroll_h) {
|
||||||
|
h_scroll->set_page(size.width);
|
||||||
h_scroll->hide();
|
h_scroll->hide();
|
||||||
scroll.x = 0;
|
scroll.x = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user