浏览代码

Merge pull request #12032 from Grosskopf/seperation-bugfix

Turned around minimum size scaling for seperator. Fixes #12020
Rémi Verschelde 8 年之前
父节点
当前提交
3b76eea233
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      scene/gui/separator.cpp

+ 5 - 1
scene/gui/separator.cpp

@@ -32,7 +32,11 @@
 Size2 Separator::get_minimum_size() const {
 Size2 Separator::get_minimum_size() const {
 
 
 	Size2 ms(3, 3);
 	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;
 	return ms;
 }
 }