From 87e307d082a3f360981785d9e2f34243c8cfd231 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Mon, 8 Sep 2025 22:22:47 +0200 Subject: Closer to function --- src/tafl/tafl.odin | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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) { -- cgit v1.2.1