jQuery: The Write Less, Do More JavaScript Library

Changeset 5513

Show
Ignore:
Timestamp:
05/08/08 19:25:14 (3 days ago)
Author:
paul.bakaus
Message:

ui-slider: outer proportions of slider are calculated on click / drag start (fixes #2822) [FIXED]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.slider.js

    r5508 r5513  
    211211            if (clickedHandle || this.disabled || !(this.currentHandle || this.previousHandle)) 
    212212                return; 
    213                  
    214             // Prepare the outer size 
    215             this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() }; 
    216213 
    217214            // If a previous handle was focussed, focus it again 
     
    325322         
    326323        moveTo: function(value, handle, noPropagation) { 
    327             var o = this.options; 
     324 
     325            var o = this.options; 
     326 
     327            // Prepare the outer size 
     328            this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() }; 
     329 
    328330            if (handle == undefined && !this.currentHandle && this.handle.length != 1) 
    329331                return false; //If no handle has been passed, no current handle is available and we have multiple handles, return false