widget(Table): replace iniChild call
This commit is contained in:
parent
6d95ab65e6
commit
dae0380d65
1 changed files with 5 additions and 6 deletions
|
@ -209,12 +209,11 @@ pub fn drawTable(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const table_win = win.initChild(
|
const table_win = win.child(.{
|
||||||
0,
|
.y_off = table_ctx.y_off,
|
||||||
table_ctx.y_off,
|
.width = .{ .limit = win.width },
|
||||||
.{ .limit = win.width },
|
.height = .{ .limit = win.height },
|
||||||
.{ .limit = win.height },
|
});
|
||||||
);
|
|
||||||
|
|
||||||
// Headers
|
// Headers
|
||||||
if (table_ctx.col > headers.len - 1) table_ctx.col = headers.len - 1;
|
if (table_ctx.col > headers.len - 1) table_ctx.col = headers.len - 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue