Mercurial > dwindows
comparison os2/dw.c @ 448:e81af9e60697
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 | cf00d6e2b3cc |
comparison
equal
deleted
inserted
replaced
447:5a0779561d0f | 448:e81af9e60697 |
---|---|
896 dw_font_text_extents(thisbox->grouphwnd, 0, text, NULL, &textheight); | 896 dw_font_text_extents(thisbox->grouphwnd, 0, text, NULL, &textheight); |
897 dw_free(text); | 897 dw_free(text); |
898 } | 898 } |
899 | 899 |
900 (*usedx) += 6; | 900 (*usedx) += 6; |
901 (*usedpadx) += 6; | |
901 (*usedy) += textheight ? (3 + textheight) : 6; | 902 (*usedy) += textheight ? (3 + textheight) : 6; |
903 (*usedpady) += textheight ? (3 + textheight) : 6; | |
902 } | 904 } |
903 | 905 |
904 for(z=0;z<thisbox->count;z++) | 906 for(z=0;z<thisbox->count;z++) |
905 { | 907 { |
906 if(thisbox->items[z].type == TYPEBOX) | 908 if(thisbox->items[z].type == TYPEBOX) |