Browse Source

turned arround minimum Size for Seperator in reaction to issue #12020

Grosskopf 8 years ago
parent
commit
5194c03992
1 changed files with 5 additions and 1 deletions
  1. 5 1
      scene/gui/separator.cpp

+ 5 - 1
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;
 }