Draggable: A small iframeFix refinement #544

Closed
wants to merge 1 commit into
from
View
4 ui/jquery.ui.draggable.js
@@ -87,8 +87,8 @@ $.widget("ui.draggable", $.ui.mouse, {
width: this.offsetWidth+"px", height: this.offsetHeight+"px",
position: "absolute", opacity: "0.001", zIndex: 1000
})
- .css($(this).offset())
- .appendTo("body");
+ .css($(this).position())
+ .appendTo($(this).offsetParent());
});
return true;