Changeset 5551
- Timestamp:
- 05/11/08 14:41:11 (8 months ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.draggable.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.draggable.js
r5433 r5551 51 51 this.helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [e])) : (o.helper == 'clone' ? this.element.clone() : this.element); 52 52 if(!this.helper.parents('body').length) this.helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo)); 53 if( !this.helper.css("position") || this.helper.css("position") == "static") this.helper.css("position", "absolute");53 if(this.helper[0] != this.element[0] && !(/(fixed|absolute)/).test(this.helper.css("position"))) this.helper.css("position", "absolute"); 54 54 55 55 /* … … 520 520 start: function(e,ui) { 521 521 var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) { 522 return (parseInt($(a).css("zIndex") ) || ui.options.stack.min) - (parseInt($(b).css("zIndex")) || ui.options.stack.min);522 return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min); 523 523 }); 524 524
