diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 92dd13c0d41..bd99f2f72c3 100644 --- a/ui/jquery.ui.draggable.js +++ b/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;