Changeset 5400
- Timestamp:
- 05/04/08 08:15:30 (8 months ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.slider.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.slider.js
r5396 r5400 23 23 this.element.bind("setData.slider", function(event, key, value) { 24 24 self.options[key] = value; 25 if (/min|max /.test(key))25 if (/min|max|steps/.test(key)) 26 26 self.initBoundaries(); 27 27 }).bind("getData.slider", function(event, key){ … … 106 106 //Calculate stepping based on steps 107 107 o.stepping = { 108 x: o.stepping && o.stepping.x || parseInt(o.stepping, 10) || (o.steps && o.steps.x ? o.realMax.x/o.steps.x: 0),109 y: o.stepping && o.stepping.y || parseInt(o.stepping, 10) || (o.steps && o.steps.y ? o.realMax.y/o.steps.y: 0)108 x: o.stepping && o.stepping.x || parseInt(o.stepping, 10) || (o.steps ? o.realMax.x/(o.steps.x || parseInt(o.steps, 10) || o.realMax.x) : 0), 109 y: o.stepping && o.stepping.y || parseInt(o.stepping, 10) || (o.steps ? o.realMax.y/(o.steps.y || parseInt(o.steps, 10) || o.realMax.y) : 0) 110 110 }; 111 111 }, … … 189 189 handleSize: function(handle,axis) { 190 190 if(!axis) axis = this.options.axis == "vertical" ? 2 : 1; 191 return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[ axis == 1 ? "outerWidth" : "outerHeight"]();191 return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[0][axis == 1 ? "offsetWidth" : "offsetHeight"]; 192 192 }, 193 193 click: function(e) {
