Revision: 3193
          http://vexi.svn.sourceforge.net/vexi/?rev=3193&view=rev
Author:   clrg
Date:     2008-11-10 17:37:21 +0000 (Mon, 10 Nov 2008)

Log Message:
-----------
Emulate box children get behaviour in grids

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/layout/grid.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/layout/grid.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/layout/grid.t       
2008-11-10 16:23:34 UTC (rev 3192)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/layout/grid.t       
2008-11-10 17:37:21 UTC (rev 3193)
@@ -604,13 +604,14 @@
             
             // removing a child
             } else {
+                var c = null;
                 var b = $content[trapname];
                 if (b) {
                     b.Children --= gridboxChildren;
                     colregions.remove(b);
                     rowregions.remove(b);
-                }
-                var c = b[0];
+                    c = b[0];
+                } else throw "attempt to get null child from a box";
                 if (c) {
                     c.contentwidth --= invokePlaceWidth;
                     c.contentheight --= invokePlaceHeight;
@@ -619,7 +620,7 @@
                     c.colspan --= invokePack;
                     c.rowspan --= invokePack;
                     c.v_gridbox = null;
-                }
+                } else throw "should not happen";
                 // finish removal
                 $content[trapname] = null;
             }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to