From 6b2797cd8c988f17c10d1ca632702884b0cb2ba2 Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Wed, 17 Dec 2025 21:50:48 +0100 Subject: [PATCH] mod(container): `.fixed` sizing behavior with `minSize` `Container` / `Element` function --- src/container.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/container.zig b/src/container.zig index a704995..f769767 100644 --- a/src/container.zig +++ b/src/container.zig @@ -727,7 +727,7 @@ pub fn Container(Model: type, Event: type) type { // assign currently calculated size this.size = switch (this.properties.size.grow) { .both => .max(size, this.properties.size.dim), - .fixed => this.properties.size.dim, + .fixed => if (this.properties.size.dim.x != 0 and this.properties.size.dim.y != 0) this.properties.size.dim else size, .horizontal => .{ .x = @max(size.x, this.properties.size.dim.x), .y = this.properties.size.dim.y,