diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 8226c0bcd..a6276c37f 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -361,7 +361,6 @@ $.widget( "ui.draggable", $.ui.interaction, { }, _blockFrames: function() { - var body = this.document[0].body; this.iframeBlocks = this.document.find( "iframe" ).map(function() { var iframe = $( this ), @@ -375,7 +374,7 @@ $.widget( "ui.draggable", $.ui.interaction, { top: iframeOffset.top, left: iframeOffset.left }) - .appendTo( body )[0]; + .appendTo( iframe.parent() )[0]; }); },