diff options
Diffstat (limited to 'usr/local/www/javascript/scriptaculous/slider.js')
-rw-r--r-- | usr/local/www/javascript/scriptaculous/slider.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/javascript/scriptaculous/slider.js b/usr/local/www/javascript/scriptaculous/slider.js index fdd0bcc..c0f1fc0 100644 --- a/usr/local/www/javascript/scriptaculous/slider.js +++ b/usr/local/www/javascript/scriptaculous/slider.js @@ -200,10 +200,10 @@ Control.Slider.prototype = { setSpan: function(span, range) { if(this.isVertical()) { span.style.top = this.translateToPx(range.start); - span.style.height = this.translateToPx(range.end - range.start); + span.style.height = this.translateToPx(range.end - range.start + this.range.start); } else { span.style.left = this.translateToPx(range.start); - span.style.width = this.translateToPx(range.end - range.start); + span.style.width = this.translateToPx(range.end - range.start + this.range.start); } }, updateStyles: function() { |