aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tafl/tafl.odin5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tafl/tafl.odin b/src/tafl/tafl.odin
index 1088823..38beb67 100644
--- a/src/tafl/tafl.odin
+++ b/src/tafl/tafl.odin
@@ -182,14 +182,11 @@ grow_children_height :: proc(parent : ^Tafl) {
switch parent.layout {
case .LEFT_TO_RIGHT:
- for child in children_of(parent) {
- remaining_height = min(child.height, parent.sizing.height.max)
- }
- remaining_height -= max(parent.children.len - 1, 0) * parent.child_gap
case .TOP_TO_BOTTOM:
for child in children_of(parent) {
remaining_height -= child.height
}
+ remaining_height -= max(parent.children.len - 1, 0) * parent.child_gap
}
for child_again in children_of(parent) {