mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Use outerWidth/Height for iframe blocks.
This commit is contained in:
parent
ad8b486a3a
commit
97d20634e0
8
ui/jquery.ui.draggable.js
vendored
8
ui/jquery.ui.draggable.js
vendored
@ -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 ];
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user