From b9921c770550ad9835dce09f2d034d13e262a426 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 3 Nov 2024 15:20:24 -0600 Subject: [PATCH] vxfw(ListView): use correct offset when inserting children --- src/vxfw/ListView.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vxfw/ListView.zig b/src/vxfw/ListView.zig index 3317a53..4d2fa90 100644 --- a/src/vxfw/ListView.zig +++ b/src/vxfw/ListView.zig @@ -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, });