add(container/layout): sizing option percentage
This commit is contained in:
1 parent
ef950809a6
commit
98031dbd1a
2 files changed
+3
-3
No files matched your search
@@ -33,8 +33,8 @@ pub fn main() !void {
|
||||
.layout = .{
|
||||
// .gap = 1,
|
||||
.sizing = .{
|
||||
.width = .{ .fixed = 100 },
|
||||
.height = .{ .fixed = 50 },
|
||||
.width = .{ .percent = 50 },
|
||||
.height = .{ .percent = 50 },
|
||||
},
|
||||
.padding = .all(5),
|
||||
.direction = .horizontal,
|
||||
|
||||
Reference in new issue
Block a user