Revision: 2944
          http://vexi.svn.sourceforge.net/vexi/?rev=2944&view=rev
Author:   clrg
Date:     2008-06-16 08:02:09 -0700 (Mon, 16 Jun 2008)

Log Message:
-----------
Minor clean up for container

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

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/layout/container.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/layout/container.t  
2008-06-16 12:53:27 UTC (rev 2943)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/layout/container.t  
2008-06-16 15:02:09 UTC (rev 2944)
@@ -10,22 +10,25 @@
         // signal readiness
         thisbox.v_container = true;
         
-        // common redirects
-        if (thisbox.v_content)
-            rdt..addRedirect(thisbox, v_content, "orient", "layout");
-        if (thisbox.v_fillbox)
-            rdt..addRedirect(thisbox, v_fillbox, "fill", "tile");
-        if (thisbox.v_textbox) {
-            rdt..addRedirect(thisbox, v_textbox, "font", "fontsize", "text", 
"textcolor");
-            v_textbox.align = thisbox.textalign ? textalign : "left";
-            textalign ++= static.textalignRead;
-            textalign ++= static.textalignWrite;
-        }
+        { // set up widget as a container
+            var r = rdt..addRedirect;
+            // common redirects
+            if (thisbox.v_content)
+                r(thisbox, v_content, "orient", "layout");
+            if (thisbox.v_fillbox)
+                r(thisbox, v_fillbox, "fill", "tile");
+            if (thisbox.v_textbox) {
+                r(thisbox, v_textbox, "font", "fontsize", "text", "textcolor");
+                v_textbox.align = thisbox.textalign ? textalign : "left";
+                textalign ++= static.textalignRead;
+                textalign ++= static.textalignWrite;
+            }
+            
+            // common settings
+            if (thisbox.margin) margin = margin;
+            if (thisbox.padding) padding = padding;
+        }; // end
         
-        // common settings
-        if (thisbox.margin) margin = margin;
-        if (thisbox.padding) padding = padding;
-        
     </ui:box>
     
     static.textalignRead = function() { return trapee.v_textbox.align; }


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

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to