Skip to content

Commit

Permalink
feat(draggable): keep container position prop if different than static
Browse files Browse the repository at this point in the history
  • Loading branch information
vieron committed Mar 5, 2014
1 parent 6f22217 commit 04868a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jquery.draggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 04868a3

Please sign in to comment.