From dae0380d65e6b0e04a45ada1d240e547bfe031df Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 14 Oct 2024 19:17:51 -0500 Subject: [PATCH] widget(Table): replace iniChild call --- src/widgets/Table.zig | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/widgets/Table.zig b/src/widgets/Table.zig index b73b256..4df91d9 100644 --- a/src/widgets/Table.zig +++ b/src/widgets/Table.zig @@ -209,12 +209,11 @@ pub fn drawTable( } }; - const table_win = win.initChild( - 0, - table_ctx.y_off, - .{ .limit = win.width }, - .{ .limit = win.height }, - ); + const table_win = win.child(.{ + .y_off = table_ctx.y_off, + .width = .{ .limit = win.width }, + .height = .{ .limit = win.height }, + }); // Headers if (table_ctx.col > headers.len - 1) table_ctx.col = headers.len - 1;