diff options
| author | Grosskopf | 2017-10-11 19:21:33 +0200 |
|---|---|---|
| committer | Grosskopf | 2017-10-12 00:25:56 +0200 |
| commit | 5194c0399259cc3c16dd966c47141179f8b5d98a (patch) | |
| tree | f5ab78e0f6aecc01f42968b5cef39769b327738f | |
| parent | 409e58e67abde4e7af6e43b32c23338e119377fb (diff) | |
| download | godot-5194c0399259cc3c16dd966c47141179f8b5d98a.tar.gz godot-5194c0399259cc3c16dd966c47141179f8b5d98a.tar.zst godot-5194c0399259cc3c16dd966c47141179f8b5d98a.zip | |
| -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 3db234f7c..55d837458 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; } |
