add(container/layout): sizing option percentage
This commit is contained in:
@@ -90,7 +90,7 @@ the primary use-case for myself to create this library in the first place.
|
|||||||
- [ ] fit
|
- [ ] fit
|
||||||
- [ ] grow
|
- [ ] grow
|
||||||
- [x] fixed
|
- [x] fixed
|
||||||
- [ ] percent
|
- [x] percent
|
||||||
- [ ] Border
|
- [ ] Border
|
||||||
- [x] sides
|
- [x] sides
|
||||||
- [x] corners
|
- [x] corners
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ pub fn main() !void {
|
|||||||
.layout = .{
|
.layout = .{
|
||||||
// .gap = 1,
|
// .gap = 1,
|
||||||
.sizing = .{
|
.sizing = .{
|
||||||
.width = .{ .fixed = 100 },
|
.width = .{ .percent = 50 },
|
||||||
.height = .{ .fixed = 50 },
|
.height = .{ .percent = 50 },
|
||||||
},
|
},
|
||||||
.padding = .all(5),
|
.padding = .all(5),
|
||||||
.direction = .horizontal,
|
.direction = .horizontal,
|
||||||
|
|||||||
Reference in New Issue
Block a user