Skip to content

Commit 97d2063

Browse files
committed
Draggable: Use outerWidth/Height for iframe blocks.
1 parent ad8b486 commit 97d2063

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ui/jquery.ui.draggable.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,10 @@ $.widget( "ui.draggable", $.ui.interaction, {
446446
var iframe = $( this );
447447

448448
return $( "<div>" )
449-
.css({
450-
position: "absolute",
451-
width: iframe.outerWidth(),
452-
height: iframe.outerHeight()
453-
})
449+
.css( "position", "absolute" )
454450
.appendTo( iframe.parent() )
451+
.outerWidth( iframe.outerWidth() )
452+
.outerHeight( iframe.outerHeight() )
455453
.offset( iframe.offset() )[ 0 ];
456454
});
457455
},

0 commit comments

Comments
 (0)