mirror of
https://github.com/godotengine/godot.git
synced 2025-01-19 08:22:01 +00:00
Small arrangement in ScrollContainer.
This commit is contained in:
parent
f6232efed9
commit
f2f18261c3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user