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:
pshe94 2018-11-16 02:47:43 +01:00 committed by Rémi Verschelde
parent 0b2a884fe2
commit 4d610757af

View file

@ -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++) {