diff --git a/src/jquery.draggable.js b/src/jquery.draggable.js index 4c5a09feb..38cd7af17 100644 --- a/src/jquery.draggable.js +++ b/src/jquery.draggable.js @@ -76,8 +76,9 @@ var fn = Draggable.prototype; fn.init = function() { + var pos = this.$container.css('position'); this.calculate_dimensions(); - this.$container.css('position', 'relative'); + this.$container.css('position', pos === 'static' ? 'relative' : pos); this.disabled = false; this.events();