Revision: 2120
          http://vexi.svn.sourceforge.net/vexi/?rev=2120&view=rev
Author:   clrg
Date:     2007-09-04 09:07:11 -0700 (Tue, 04 Sep 2007)

Log Message:
-----------
Respect hide property in lib.widget.scrollbar

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/scrollbar.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  
2007-09-04 12:07:32 UTC (rev 2119)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/scrollbar.t  
2007-09-04 16:07:11 UTC (rev 2120)
@@ -84,8 +84,10 @@
         /** sync thumb with viewport position */
         var syncThumb = function()
         {
+            // don't do much if we're hidden
+            if (hide) display = false;
             // conditions where thumb placement is not [yet] desirable
-            if (!surface || viewport == null || viewport[0] == null || 
viewport[dim] >= viewport[0][dim])
+            else if (!surface || viewport == null || viewport[0] == null || 
viewport[dim] >= viewport[0][dim])
             {
                 if (enabled) enabled = false;
                 if (autohide) display = false;


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
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to