Use VScrollBar when calculating horiz. offset in ScrollContainer
Someone forgot to change `h_scroll` to `v_scroll` when copy-pasting the code ;)
(cherry picked from commit 554b3f77c7
)
This commit is contained in:
parent
0b2a884fe2
commit
4d610757af
|
@ -237,7 +237,7 @@ void ScrollContainer::_notification(int p_what) {
|
|||
size.y -= h_scroll->get_minimum_size().y;
|
||||
|
||||
if (v_scroll->is_visible_in_tree())
|
||||
size.x -= h_scroll->get_minimum_size().x;
|
||||
size.x -= v_scroll->get_minimum_size().x;
|
||||
|
||||
for (int i = 0; i < get_child_count(); i++) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue