diff options
author | San Jacobs | 2025-09-08 22:22:47 +0200 |
---|---|---|
committer | San Jacobs | 2025-09-08 22:22:47 +0200 |
commit | 87e307d082a3f360981785d9e2f34243c8cfd231 (patch) | |
tree | 7fb19e538514da2ac456a79b2a3b15011400f839 /src | |
parent | d53c3370845f43785c03b218909f4f90f2b2dd47 (diff) | |
download | tafl-87e307d082a3f360981785d9e2f34243c8cfd231.tar.gz tafl-87e307d082a3f360981785d9e2f34243c8cfd231.tar.bz2 tafl-87e307d082a3f360981785d9e2f34243c8cfd231.zip |
Closer to function
Diffstat (limited to 'src')
-rw-r--r-- | src/tafl/tafl.odin | 5 |
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) { |