-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Having a ListView
of FlexRow
s doesn't work, because FlexRow.draw()
asserts ctx.max.height != null
.
This works, but I don't know if it's correct:
diff --git a/src/vxfw/ListView.zig b/src/vxfw/ListView.zig
index 309ebe8..2513cc9 100644
--- a/src/vxfw/ListView.zig
+++ b/src/vxfw/ListView.zig
@@ -233,7 +233,7 @@ fn insertChildren(
// Set up constraints. We let the child be the entire height if it wants
const child_ctx = ctx.withConstraints(
.{ .width = max_size.width - child_offset, .height = 0 },
- .{ .width = max_size.width - child_offset, .height = null },
+ .{ .width = max_size.width - child_offset, .height = max_size.height },
);
// Draw the child
Metadata
Metadata
Assignees
Labels
No labels