diff 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
line wrap: on
line diff
--- a/mde/gui/widget/layout.d	Mon Feb 09 23:27:41 2009 +0000
+++ b/mde/gui/widget/layout.d	Tue Feb 10 12:57:09 2009 +0000
@@ -220,7 +220,7 @@
 	    widget.setWidth  (col.width[i % cols], -1);
 	    widget.setHeight (row.width[i / cols], -1);
 	}
-        return (ow != w || oh != h);
+        return (ow != w || oh != h || n == 0);
     }
     //END Creation & saving