fix: row/column mixup
This commit is contained in:
parent
163755f525
commit
c3ceb916c7
|
@ -58,7 +58,7 @@ fn position(self: *Self, ctx: *LayoutCtx, pos: Position) void {
|
|||
continue;
|
||||
|
||||
const x = pos.x + (i % self.cols) * col_width;
|
||||
const y = pos.y + @divFloor(i, rows) * row_height;
|
||||
const y = pos.y + @divFloor(i, self.cols) * row_height;
|
||||
|
||||
child.position(ctx, .{ .x = x, .y = y });
|
||||
}
|
||||
|
|
Reference in a new issue