Revision: 4007
          http://vexi.svn.sourceforge.net/vexi/?rev=4007&view=rev
Author:   clrg
Date:     2011-01-26 03:41:02 +0000 (Wed, 26 Jan 2011)

Log Message:
-----------
Remove v_init from theme.classic.cell as it was over-writing settings from 
lib.widget.cell
- fixes cell alignment based on the datatype used to initialize the cell i.e. 
col.datatype

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/cell.t
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/cell.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/cell.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/cell.t     
2011-01-26 02:33:04 UTC (rev 4006)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/cell.t     
2011-01-26 03:41:02 UTC (rev 4007)
@@ -25,10 +25,13 @@
         var t = trapee;
         t.minheight = t.paddingtop + t.paddingbottom
             + vexi.ui.font.height(t.font, t.fontsize, "dy");
+        t.padding = 2;
+        // we use an inner box for content because
+        // content may be too wide to display
         t[0] = vexi.box;
+        t[0].shrink = true;
         t.v_textbox = t[0];
         var c = t.v_content;
-        c.align = "left";
         c.layout = "place";
         c.align ++= static.forwardToInner;
         c.orient ++= static.forwardToInner;
@@ -36,31 +39,34 @@
         case "bool":
         case "boolean":
             c.align = "center";
-            t[0].shrink = true;
             t[0].fill = theme.image.check;
             t.selected ++= static.toggleSelectWrite;
             t.text ++= static.toggleTextRead;
             t.value ++= static.toggleValueWrite;
             break;
         case "date":
+            c.align = "left";
             t.selected ++= static.selectedWrite;
             t.value ++= static.dateValueWrite;
             break;
         case "text":
+            c.align = "left";
             t.selected ++= static.selectedWrite;
             t.value ++= static.textValueWrite;
             break;
         case "time":
+            c.align = "left";
             t.selected ++= static.selectedWrite;
             t.value ++= static.timeValueWrite;
             break;
         case "integer":
         case "number":
-            t.v_textbox.align = "right";
+            c.align = "right";
             t.selected ++= static.selectedWrite;
             t.value ++= static.valueWrite;
             break;
         default:
+            c.align = "left";
             t.selected ++= static.selectedWrite;
             t.value ++= static.valueWrite;
             break;

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/cell.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/cell.t  
2011-01-26 02:33:04 UTC (rev 4006)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/cell.t  
2011-01-26 03:41:02 UTC (rev 4007)
@@ -6,10 +6,5 @@
         <author>Charles Goodwin</author>
     </meta:doc>
     
-    <cell>
-        thisbox.v_init = static.cellinit;
-    </cell>
-    
-    static.cellinit = { align:"left", layout:"place", padding:2 };
-    
+    <cell />
 </vexi>


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

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to