vxfw(ListView): use correct offset when inserting children
This commit is contained in:
parent
13e9e8ecfe
commit
b9921c7705
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue