fix: row/column mixup

This commit is contained in:
LordMZTE 2023-05-03 00:19:39 +02:00
parent 163755f525
commit c3ceb916c7
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

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