Revision: 4311
          http://vexi.svn.sourceforge.net/vexi/?rev=4311&view=rev
Author:   clrg
Date:     2011-12-23 08:46:12 +0000 (Fri, 23 Dec 2011)
Log Message:
-----------
Fix cell alignment issues

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/cell.t
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/row.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-12-21 12:41:38 UTC (rev 4310)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/cell.t     
2011-12-23 08:46:12 UTC (rev 4311)
@@ -28,11 +28,12 @@
         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[0] = vexi.box;
+        c[0].shrink = true;
+        t.v_textbox = c[0];
         c.layout = "place";
+        c.orient = "vertical";
         c.align ++= static.forwardToInner;
         c.orient ++= static.forwardToInner;
         switch (t.datatype) {
@@ -61,7 +62,9 @@
             break;
         case "integer":
         case "number":
+        case "numeric":
             c.align = "right";
+            t.align = "right";
             t.selected ++= static.selectedWrite;
             t.value ++= static.valueWrite;
             break;
@@ -84,6 +87,7 @@
             trapee.text = "";
             return;
         }
+        vexi.trace(typeof(v));
         switch (typeof(v)) {
         case "date":
             trapee.text = v.getDate()+" "+month[v.getMonth()]+" 
"+v.getFullYear();
@@ -109,6 +113,8 @@
         if (v) {
             if (typeof(v)=="array")
                 v = v.join(", ");
+            if (typeof(v)=="object")
+                v = "{ }";
             var n = v.indexOf("\n");
             var r = v.indexOf("\r");
             if (n!=-1 or r!=-1) {

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/row.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/row.t      
2011-12-21 12:41:38 UTC (rev 4310)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/row.t      
2011-12-23 08:46:12 UTC (rev 4311)
@@ -6,6 +6,7 @@
     </meta:doc>
 
     <ui:box>
+        
         thisbox.curfill = null;
         thisbox.selected = false;
         thisbox.v_setfill = true;

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


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to