imtk
diff src/imtk.c @ 22:17f5ff624da3
minor fixes in the layout system
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Sat, 30 Apr 2011 06:12:51 +0300 |
parents | 3138c38433e2 |
children | 4c2b3e281409 |
line diff
1.1 --- a/src/imtk.c Sat Apr 30 05:36:56 2011 +0300 1.2 +++ b/src/imtk.c Sat Apr 30 06:12:51 2011 +0300 1.3 @@ -96,7 +96,6 @@ 1.4 { 1.5 int max_span_y, max_box_y; 1.6 1.7 - box[2] += width + spacing; 1.8 span[2] += width + spacing; 1.9 1.10 if(height > span[3]) { 1.11 @@ -109,6 +108,9 @@ 1.12 if(max_span_y > max_box_y) { 1.13 box[3] = max_span_y - box[1]; 1.14 } 1.15 + if(span[2] > box[2]) { 1.16 + box[2] = span[2]; 1.17 + } 1.18 1.19 if(layout == IMTK_VERTICAL) { 1.20 imtk_layout_newline();