vxfw(ListView): use correct offset when inserting children

This commit is contained in:
Tim Culverhouse 2024-11-03 15:20:24 -06:00
parent 13e9e8ecfe
commit b9921c7705

View file

@ -257,7 +257,7 @@ fn insertChildren(
// Insert the child to the beginning of the list
try child_list.insert(0, .{
.origin = .{ .col = 2, .row = upheight },
.origin = .{ .col = if (self.draw_cursor) 2 else 0, .row = upheight },
.surface = surf,
.z_index = 0,
});