mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 08:10:50 +00:00
Add padding back into calculation
This commit is contained in:
parent
a9598d9d10
commit
b1b6e9a2a1
1 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -210,8 +210,15 @@
|
||||||
[v setFrame: rect];
|
[v setFrame: rect];
|
||||||
[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++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue