feat(draggable): keep container position prop if different than static

This commit is contained in:
vieron
2014-03-05 17:47:39 +01:00
parent 6f22217f05
commit 04868a384d
+2 -1
View File
@@ -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();