WIP: use viewport to allow sizes of scroll to extend further than renderable screen

This commit is contained in:
2025-02-12 22:33:03 +01:00
parent 98031dbd1a
commit bbe6f4741e
9 changed files with 119 additions and 51 deletions

View File

@@ -31,17 +31,19 @@ pub fn main() !void {
.separator = .{ .enabled = false },
},
.layout = .{
// .gap = 1,
.sizing = .{
.width = .{ .percent = 50 },
.height = .{ .percent = 50 },
},
.gap = 1,
.padding = .all(5),
.direction = .horizontal,
},
});
try container.append(try App.Container.init(allocator, .{
.rectangle = .{ .fill = .blue },
.layout = .{
.sizing = .{
.width = .{ .fixed = 70 },
.height = .{ .fixed = 18 },
},
},
}));
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_blue, .corners = .squared },