widget(Table): replace iniChild call

This commit is contained in:
Tim Culverhouse 2024-10-14 19:17:51 -05:00
parent 6d95ab65e6
commit dae0380d65

View file

@ -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;