Draggable: _blockFrames now appends blocking div to iframe parent rather than body. Should fix Ticket #7650.

This commit is contained in:
Dave Stein 2012-12-10 17:14:37 -05:00
parent 25cf569c63
commit 94e475ba2d

View File

@ -361,7 +361,6 @@ $.widget( "ui.draggable", $.ui.interaction, {
}, },
_blockFrames: function() { _blockFrames: function() {
var body = this.document[0].body;
this.iframeBlocks = this.document.find( "iframe" ).map(function() { this.iframeBlocks = this.document.find( "iframe" ).map(function() {
var iframe = $( this ), var iframe = $( this ),
@ -375,7 +374,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
top: iframeOffset.top, top: iframeOffset.top,
left: iframeOffset.left left: iframeOffset.left
}) })
.appendTo( body )[0]; .appendTo( iframe.parent() )[0];
}); });
}, },