When a box is a groupbox, we need to add the groupbox border to both the
used size and used padding size... so the sub-box ratios are calculated
correctly.
author |
bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
date |
Mon, 09 Jun 2003 08:14:59 +0000 |
parents |
5a0779561d0f |
children |
787cc1e27897 |
files |
os2/dw.c win/dw.c |
diffstat |
2 files changed, 4 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/os2/dw.c Tue Jun 03 09:13:35 2003 +0000
+++ b/os2/dw.c Mon Jun 09 08:14:59 2003 +0000
@@ -898,7 +898,9 @@
}
(*usedx) += 6;
+ (*usedpadx) += 6;
(*usedy) += textheight ? (3 + textheight) : 6;
+ (*usedpady) += textheight ? (3 + textheight) : 6;
}
for(z=0;z<thisbox->count;z++)
--- a/win/dw.c Tue Jun 03 09:13:35 2003 +0000
+++ b/win/dw.c Mon Jun 09 08:14:59 2003 +0000
@@ -859,7 +859,9 @@
}
(*usedx) += 6;
+ (*usedpadx) += 6;
(*usedy) += textheight ? (3 + textheight) : 6;
+ (*usedpady) += textheight ? (3 + textheight) : 6;
}
for(z=0;z<thisbox->count;z++)