# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1055146499 0 # Node ID e81af9e60697a018f790f150b9f2682b71620d00 # Parent 5a0779561d0f4ba157708e3a74294a092bb4eb8a 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. diff -r 5a0779561d0f -r e81af9e60697 os2/dw.c --- 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;zcount;z++) diff -r 5a0779561d0f -r e81af9e60697 win/dw.c --- 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;zcount;z++)