Revision: 4459
          http://vexi.svn.sourceforge.net/vexi/?rev=4459&view=rev
Author:   mkpg2
Date:     2012-12-05 23:42:22 +0000 (Wed, 05 Dec 2012)
Log Message:
-----------
Fix/Change. Split pane shrink behaviour.

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/splitpane.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/splitpane.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/splitpane.t        
2012-11-23 01:50:35 UTC (rev 4458)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/splitpane.t        
2012-12-05 23:42:22 UTC (rev 4459)
@@ -133,14 +133,8 @@
                     v_holding[i][fls] = false;
                 } else {
                     var shell = v_holding[i];
-                    if (shell[fls]) {
-                        shell[fls] = false;
-                        shell[0][fls] = true;
-                    }
-                    if (shell[0][shr]) {
-                        shell[shr] = true;
-                        shell[0][shr] = false;
-                    }
+                    shell[fls] = false;
+                    shell[shr] = shell[0][shr];
                 }
             }
         }
@@ -181,10 +175,14 @@
                         v_holding[i*2-1] = div;
                     var shell = vexi.box;
                     shell[0] = c;
-                    if (c[shr]) {
-                        c[shr] = false;
-                        shell[shr] = true;
+                    var react = function(v) {
+                        cascade = v;
+                        if (trapname == shr)
+                            shell[shr] = v;
                     }
+                    c.hshrink ++= react;
+                    c.vshrink ++= react;
+                    shell[shr] = c[shr];
                     v_holding[i*2] = shell;
                     if (div and i==0)
                         v_holding[1] = div;

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


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to