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) if (ci == 0)
{ {
// current_y -= [row topPadding]; current_y -= [row topPadding];
current_y -= p.size.height; current_y -= p.size.height;
current_x = 0.0; current_x = 0.0;
} }
@ -211,7 +211,14 @@
[self addSubview: v]; [self addSubview: v];
} }
current_x += [col leadingPadding];
current_x += p.size.width; current_x += p.size.width;
current_x += [col trailingPadding];
if (ci == 0)
{
current_y -= [row bottomPadding];
}
// inc // inc
i++; i++;