Revision: 4439
          http://vexi.svn.sourceforge.net/vexi/?rev=4439&view=rev
Author:   clrg
Date:     2012-10-02 15:38:27 +0000 (Tue, 02 Oct 2012)
Log Message:
-----------
Fix enabled=false visual glitch

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

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/option.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/option.t        
2012-10-01 08:12:24 UTC (rev 4438)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/option.t        
2012-10-02 15:38:27 UTC (rev 4439)
@@ -122,7 +122,9 @@
     /** enabled state effects */
     static.enableWrite = function(v) {
         cascade = v;
-        trapee.th_button.width = v ? 18 : 0;
+        trapee.th_button.width = trapee.enabled ? 18 : 0;
+        var surroundwidth = 
trapee.width-2-trapee.marginleft-trapee.marginright;
+        trapee.th_focus.maxwidth = vexi.math.max(0, 
surroundwidth-(trapee.enabled?18:0));
     }
     
     /** set appropriate textbox size */

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-01 
08:12:24 UTC (rev 4438)
+++ trunk/org.vexi-vexi.widgets/src_poke/poke/widgets/option.t  2012-10-02 
15:38:27 UTC (rev 4439)
@@ -56,8 +56,19 @@
             </option>
             <ui:box />
             
+            <ui:box colspan="3">
+                <button id="enable" text="Toggle Enabled" />
+            </ui:box>
+            
         </lay:grid>
         
+        var enable = true;
+        
+        $enable.action ++= function(v) {
+            enable = !enable;
+            $o.enabled = $o2.enabled = $c.enabled = $c2.enabled = !enable;
+        }
+        
         vexi.ui.frame = thisbox;
         
     </ui:box>

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