From 98031dbd1abde41559bd53504aebdaec68821d1a Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Sun, 9 Feb 2025 13:41:23 +0100 Subject: [PATCH] add(container/layout): sizing option percentage --- README.md | 2 +- examples/container.zig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6b61a45..3ecea6f 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ the primary use-case for myself to create this library in the first place. - [ ] fit - [ ] grow - [x] fixed - - [ ] percent + - [x] percent - [ ] Border - [x] sides - [x] corners diff --git a/examples/container.zig b/examples/container.zig index 4a5d038..e945f38 100644 --- a/examples/container.zig +++ b/examples/container.zig @@ -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,