Draggable: Use outerWidth/Height for iframe blocks.

This commit is contained in:
Scott González 2013-03-29 12:35:40 -04:00
parent ad8b486a3a
commit 97d20634e0

View File

@ -446,12 +446,10 @@ $.widget( "ui.draggable", $.ui.interaction, {
var iframe = $( this );
return $( "<div>" )
.css({
position: "absolute",
width: iframe.outerWidth(),
height: iframe.outerHeight()
})
.css( "position", "absolute" )
.appendTo( iframe.parent() )
.outerWidth( iframe.outerWidth() )
.outerHeight( iframe.outerHeight() )
.offset( iframe.offset() )[ 0 ];
});
},