Revision: 4448
          http://vexi.svn.sourceforge.net/vexi/?rev=4448&view=rev
Author:   clrg
Date:     2012-10-11 15:56:37 +0000 (Thu, 11 Oct 2012)
Log Message:
-----------
Fix textalign for combo

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/combo.t
    trunk/org.vexi-vexi.widgets/src_poke/poke/widgets/option.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/combo.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/combo.t 
2012-10-11 10:41:32 UTC (rev 4447)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/combo.t 
2012-10-11 15:56:37 UTC (rev 4448)
@@ -70,6 +70,21 @@
         thisbox.surfaceWidth ++= opt.surfaceWidthRead;
         thisbox.surfaceHeight ++= opt.surfaceHeightRead;
         
+        thisbox.v_container ++= function(v) {
+            cascade = v;
+            v_fillbox = $focus;
+            v_textbox = $edit.v_edit;
+            thisbox.textalign ++= function(v) {
+                cascade = v;
+                var talign = v.toLowerCase();
+                $focus.align = "top"+talign;
+                var holder = talign == "right" ? $leftholder : $rightholder;
+                v_textbox.textalign = talign;
+                if (holder[0] == null)
+                    holder[0] = $button;
+            }
+        }
+        
     </ui:box>
     <lib.finalize />
     

Modified: trunk/org.vexi-vexi.widgets/src_poke/poke/widgets/option.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_poke/poke/widgets/option.t  2012-10-11 
10:41:32 UTC (rev 4447)
+++ trunk/org.vexi-vexi.widgets/src_poke/poke/widgets/option.t  2012-10-11 
15:56:37 UTC (rev 4448)
@@ -50,10 +50,10 @@
             $b2.action ++= function(v) { $c.value = "Value A"; return; }
             
             <ui:box text=" Combo " />
-            <option id="c2" textalign="right">
+            <combo id="c2" textalign="right">
                 <item text="Value A" />
                 <item text="Value B" selected="true" />
-            </option>
+            </combo>
             <ui:box />
             
             <ui:box colspan="3">

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


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to