diff options
author | Grosskopf <gerrit@familiegrosskopf.de> | 2017-10-11 19:21:33 +0200 |
---|---|---|
committer | Grosskopf <gerrit@familiegrosskopf.de> | 2017-10-12 00:25:56 +0200 |
commit | 5194c0399259cc3c16dd966c47141179f8b5d98a (patch) | |
tree | f5ab78e0f6aecc01f42968b5cef39769b327738f /scene/gui | |
parent | 409e58e67abde4e7af6e43b32c23338e119377fb (diff) |
turned arround minimum Size for Seperator in reaction to issue #12020
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/separator.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/gui/separator.cpp b/scene/gui/separator.cpp index 3db234f7cc..55d837458a 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; } |