this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

widgets(alignment): replace initChild call

+6 -1
+6 -1
src/widgets/alignment.zig
··· 3 3 pub fn center(parent: Window, cols: usize, rows: usize) Window { 4 4 const y_off = (parent.height / 2) -| (rows / 2); 5 5 const x_off = (parent.width / 2) -| (cols / 2); 6 - return parent.initChild(x_off, y_off, .{ .limit = cols }, .{ .limit = rows }); 6 + return parent.child(.{ 7 + .x_off = x_off, 8 + .y_off = y_off, 9 + .width = .{ .limit = cols }, 10 + .height = .{ .limit = rows }, 11 + }); 7 12 }