aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.slider.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-08 13:23:52 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-08 13:23:52 +0000
commit658307ab8f71cb68d7808f4d29a2799cd9980cc5 (patch)
treeeab7b1d5dafadc8201f342d96664e49ddfddf055 /ui/ui.slider.js
parent593cb1ffeffb981961804b7b1c13adcbf92618c7 (diff)
downloadjquery-ui-658307ab8f71cb68d7808f4d29a2799cd9980cc5.tar.gz
jquery-ui-658307ab8f71cb68d7808f4d29a2799cd9980cc5.zip
slider: fixed IE issue when handles where initialized without defined left/top values
Diffstat (limited to 'ui/ui.slider.js')
-rw-r--r--ui/ui.slider.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js
index 73877a21e..44936a8e5 100644
--- a/ui/ui.slider.js
+++ b/ui/ui.slider.js
@@ -204,8 +204,8 @@ $.widget("ui.slider", {
updateRange: function() {
var prop = this.options.axis == "vertical" ? "top" : "left";
var size = this.options.axis == "vertical" ? "height" : "width";
- this.rangeElement.css(prop, parseInt($(this.handle[0]).css(prop),10) + this.handleSize(0, this.options.axis == "vertical" ? "y" : "x")/2);
- this.rangeElement.css(size, parseInt($(this.handle[1]).css(prop),10) - parseInt($(this.handle[0]).css(prop),10));
+ this.rangeElement.css(prop, (parseInt($(this.handle[0]).css(prop),10) || 0) + this.handleSize(0, this.options.axis == "vertical" ? "y" : "x")/2);
+ this.rangeElement.css(size, (parseInt($(this.handle[1]).css(prop),10) || 0) - (parseInt($(this.handle[0]).css(prop),10) || 0));
},
getRange: function() {
return this.rangeElement ? this.convertValue(parseInt(this.rangeElement.css(this.options.axis == "vertical" ? "height" : "width"),10), this.options.axis == "vertical" ? "y" : "x") : null;