Revision: 2606
          http://vexi.svn.sourceforge.net/vexi/?rev=2606&view=rev
Author:   clrg
Date:     2007-11-21 14:17:52 -0800 (Wed, 21 Nov 2007)

Log Message:
-----------
Add contentwidth/contentheight to polarizable

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/polarizable.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/polarizable.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/polarizable.t  
2007-11-21 21:54:01 UTC (rev 2605)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/polarizable.t  
2007-11-21 22:17:52 UTC (rev 2606)
@@ -10,6 +10,8 @@
         else if (f == "height") return "width";
         else if (f == "x") return "y";
         else if (f == "y") return "x";
+        else if (f == "contentwidth") return "contentheight";
+        else if (f == "contentheight") return "contentwidth";
         else if (f == "maxwidth") return "maxheight";
         else if (f == "maxheight") return "maxwidth";
         else if (f == "minwidth") return "minheight";
@@ -23,8 +25,8 @@
     
     <ui:box>
         
+        thisbox.contentdim = "contentwidth";
         thisbox.dim = "width";
-        thisbox.globalpos = "globalx";
         thisbox.mindim = "minwidth";
         thisbox.maxdim = "maxwidth";
         thisbox.orient = "horizontal";
@@ -36,18 +38,20 @@
         thisbox.orient ++= function(v) {
                cascade = v;
             if (v == "horizontal") {
-                dim       = "width";
-                maxdim    = "maxwidth";
-                mindim    = "minwidth";
-                pos       = "x";
-                shr       = "hshrink";
+                contentdim = "contentwidth";
+                dim        = "width";
+                maxdim     = "maxwidth";
+                mindim     = "minwidth";
+                pos        = "x";
+                shr        = "hshrink";
                 horizontal = true;
             } else {
-                dim       = "height";
-                maxdim    = "maxheight";
-                mindim    = "minheight";
-                pos       = "y";
-                shr       = "vshrink";
+                contentdim = "contentheight";
+                dim        = "height";
+                maxdim     = "maxheight";
+                mindim     = "minheight";
+                pos        = "y";
+                shr        = "vshrink";
                 horizontal = false;
             }
         }


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to