From 4d610757afb7d26f94fa4be23afd469a13b6621c Mon Sep 17 00:00:00 2001 From: pshe94 Date: Fri, 16 Nov 2018 02:47:43 +0100 Subject: [PATCH] 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 554b3f77c797df59abb0446c346a590d3f50b703) --- scene/gui/scroll_container.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/scroll_container.cpp b/scene/gui/scroll_container.cpp index a6c3e9804a2..0a54e062680 100644 --- a/scene/gui/scroll_container.cpp +++ b/scene/gui/scroll_container.cpp @@ -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++) {