Unverified Commit 2e66de0d by Rémi Verschelde Committed by GitHub

Merge pull request #35180 from timothyqiu/scroll-container-min-size

Updates ScrollContainer min size when toggle scrollbars
parents b43101aa 574918f3
...@@ -452,8 +452,12 @@ void ScrollContainer::_scroll_moved(float) { ...@@ -452,8 +452,12 @@ void ScrollContainer::_scroll_moved(float) {
}; };
void ScrollContainer::set_enable_h_scroll(bool p_enable) { void ScrollContainer::set_enable_h_scroll(bool p_enable) {
if (scroll_h == p_enable) {
return;
}
scroll_h = p_enable; scroll_h = p_enable;
minimum_size_changed();
queue_sort(); queue_sort();
} }
...@@ -463,8 +467,12 @@ bool ScrollContainer::is_h_scroll_enabled() const { ...@@ -463,8 +467,12 @@ bool ScrollContainer::is_h_scroll_enabled() const {
} }
void ScrollContainer::set_enable_v_scroll(bool p_enable) { void ScrollContainer::set_enable_v_scroll(bool p_enable) {
if (scroll_v == p_enable) {
return;
}
scroll_v = p_enable; scroll_v = p_enable;
minimum_size_changed();
queue_sort(); queue_sort();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment