comparison mde/gui/widget/layout.d @ 144:66c58e5b0062

Added a BoolContent-based collapsible widget.
author Diggory Hardy <diggory.hardy@gmail.com>
date Tue, 10 Feb 2009 12:57:09 +0000
parents 9dabcc44f515
children 783969f4665c
comparison
equal deleted inserted replaced
143:2ac3e0012788 144:66c58e5b0062
218 foreach (i,widget; subWidgets) { 218 foreach (i,widget; subWidgets) {
219 // Resizing direction is arbitrarily set to negative: 219 // Resizing direction is arbitrarily set to negative:
220 widget.setWidth (col.width[i % cols], -1); 220 widget.setWidth (col.width[i % cols], -1);
221 widget.setHeight (row.width[i / cols], -1); 221 widget.setHeight (row.width[i / cols], -1);
222 } 222 }
223 return (ow != w || oh != h); 223 return (ow != w || oh != h || n == 0);
224 } 224 }
225 //END Creation & saving 225 //END Creation & saving
226 226
227 //BEGIN Size & position 227 //BEGIN Size & position
228 override bool isWSizable () { 228 override bool isWSizable () {