Revision: 2135
http://vexi.svn.sourceforge.net/vexi/?rev=2135&view=rev
Author: clrg
Date: 2007-09-06 14:48:47 -0700 (Thu, 06 Sep 2007)
Log Message:
-----------
Fix small bug where a splitpane squashes contents when clicking on a divider
for the first time
Modified Paths:
--------------
trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/splitpane.t
Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/splitpane.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/splitpane.t
2007-09-06 21:23:35 UTC (rev 2134)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/splitpane.t
2007-09-06 21:48:47 UTC (rev 2135)
@@ -67,13 +67,21 @@
var cur = th_holding.indexof(trapee);
cur_d = trapee;
cur_d.active = true;
+ // either side of the divider
cur_a = th_holding[cur-1];
cur_b = th_holding[cur+1];
+ // our starting dimensions
dim_a = cur_a[dim];
dim_b = cur_b[dim];
+ // used for !liveresize
+ tmp_a = dim_a;
+ tmp_b = dim_b;
+ // starting mouse position
m_pos = surface.mouse[pos];
+ // marker provides visual feedback if !liveresize
th_marker.display = !liveresize;
th_marker[pos] = cur_a[pos] + cur_a[dim] + markeroffset;
+ // assign move/release traps
surface.addMoveTrap(moveFunc);
surface._Release1 ++= releaseFunc;
cascade = v;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn