fix(container/grow_size): respect vertical / horizontal provided dimensions

This commit is contained in:
2025-03-06 22:07:39 +01:00
parent 79016f39b2
commit 5457e91b37
2 changed files with 8 additions and 3 deletions

View File

@@ -71,7 +71,12 @@ pub fn main() !void {
.rectangle = .{ .fill = .yellow },
}, .{}));
} else {
try column.append(try App.Container.init(allocator, .{}, .{}));
try column.append(try App.Container.init(allocator, .{
.size = .{
.dim = .{ .y = 5 },
// .grow = .horizontal,
},
}, .{}));
}
try column.append(try App.Container.init(allocator, .{
.rectangle = .{ .fill = .blue },