Revision: 2947
          http://vexi.svn.sourceforge.net/vexi/?rev=2947&view=rev
Author:   clrg
Date:     2008-06-24 17:57:45 -0700 (Tue, 24 Jun 2008)

Log Message:
-----------
Fix vertical scrollbars (*major d'oh*) and add some test stuff

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/scrollbar.t
    trunk/widgets/org.vexi.widgets/src_dev/test_option.t

Added Paths:
-----------
    trunk/widgets/org.vexi.widgets/src_dev/test_scroll.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/scrollbar.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/scrollbar.t  
2008-06-25 00:14:22 UTC (rev 2946)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/scrollbar.t  
2008-06-25 00:57:45 UTC (rev 2947)
@@ -151,8 +151,8 @@
         
         /** adjust scrollbar orient - "horizontal" or "vertical" */
         orient ++= function(v) {
+            if (v == orient) return;
             cascade = v;
-            if (v == orient) return;
             // reassign track traps
             if (th_track) {
                 th_track[flip(dim)] --= syncThumbFunc;
@@ -280,6 +280,8 @@
         
         thisbox.pageshift ++= static.pageFunc;
         
+        thisbox.v_container ++= function(v) { cascade = v; thisbox.v_content = 
null; }
+        
     </ui:box>
     
     static.pageFunc = function() {

Modified: trunk/widgets/org.vexi.widgets/src_dev/test_option.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src_dev/test_option.t        2008-06-25 
00:14:22 UTC (rev 2946)
+++ trunk/widgets/org.vexi.widgets/src_dev/test_option.t        2008-06-25 
00:57:45 UTC (rev 2947)
@@ -1,10 +1,25 @@
 <vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget">
     <w:surface />
     <ui:box>
-        <w:option shrink="true" minwidth="80">
-            <w:item text="Value A" selected="true" />
-            <w:item text="Value B" />
-        </w:option>
+        <ui:box />
+        <ui:box shrink="true">
+            <ui:box text=" Option " />
+            <w:option id="o" shrink="true" minwidth="80">
+                <w:item text="Value A" selected="true" />
+                <w:item text="Value B" />
+            </w:option>
+            <w:button id="b1" text="Set Value A" />
+            $b1.action ++= function(v) { $o.value = "Value A"; return; }
+        </ui:box>
+        <ui:box />
+        <ui:box shrink="true">
+            <ui:box text=" Combo " />
+            <w:combo shrink="true" minwidth="80">
+                <w:item text="Value A" selected="true" />
+                <w:item text="Value B" />
+            </w:combo>
+        </ui:box>
+        <ui:box />
         vexi.ui.frame = thisbox;
     </ui:box>
 </vexi>
\ No newline at end of file

Added: trunk/widgets/org.vexi.widgets/src_dev/test_scroll.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src_dev/test_scroll.t                        
        (rev 0)
+++ trunk/widgets/org.vexi.widgets/src_dev/test_scroll.t        2008-06-25 
00:57:45 UTC (rev 2947)
@@ -0,0 +1,13 @@
+<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget">
+    <w:surface />
+    <ui:box frameheight="200">
+        <ui:box />
+        <w:bevel form="down">
+            <w:scrollpane>
+                <ui:box height="210" />
+            </w:scrollpane>
+        </w:bevel>
+        <ui:box />
+        vexi.ui.frame = thisbox;
+    </ui:box>
+</vexi>
\ No newline at end of file


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

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to