Add padding back into calculation

This commit is contained in:
Gregory John Casamento 2021-03-26 18:08:30 -04:00
parent a9598d9d10
commit b1b6e9a2a1

View file

@ -196,7 +196,7 @@
if (ci == 0)
{
// current_y -= [row topPadding];
current_y -= [row topPadding];
current_y -= p.size.height;
current_x = 0.0;
}
@ -210,8 +210,15 @@
[v setFrame: rect];
[self addSubview: v];
}
current_x += [col leadingPadding];
current_x += p.size.width;
current_x += [col trailingPadding];
if (ci == 0)
{
current_y -= [row bottomPadding];
}
// inc
i++;