add(container/layout): sizing:fixed option

This commit is contained in:
yves-biener committed 2025-02-09 12:59:55 +01:00
1 parent c72d76470a
commit ef950809a6
3 files changed
+97 -3

No files matched your search

+6 -2
View File
@@ -31,8 +31,12 @@ pub fn main() !void {
.separator = .{ .enabled = false },
},
.layout = .{
.gap = 3,
.padding = .all(2),
// .gap = 1,
.sizing = .{
.width = .{ .fixed = 100 },
.height = .{ .fixed = 50 },
},
.padding = .all(5),
.direction = .horizontal,
},
});