From 5194c0399259cc3c16dd966c47141179f8b5d98a Mon Sep 17 00:00:00 2001 From: Grosskopf Date: Wed, 11 Oct 2017 19:21:33 +0200 Subject: [PATCH] turned arround minimum Size for Seperator in reaction to issue #12020 --- scene/gui/separator.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scene/gui/separator.cpp b/scene/gui/separator.cpp index 3db234f7cc8..55d837458a1 100644 --- a/scene/gui/separator.cpp +++ b/scene/gui/separator.cpp @@ -32,7 +32,11 @@ Size2 Separator::get_minimum_size() const { Size2 ms(3, 3); - ms[orientation] = get_constant("separation"); + if (orientation == VERTICAL) { + ms.x = get_constant("separation"); + } else { // HORIZONTAL + ms.y = get_constant("separation"); + } return ms; }