From: Mike Sherov Date: Sun, 24 Aug 2014 11:19:38 +0000 (-0400) Subject: Draggable: append divs to iframe parent for iframefix X-Git-Tag: 1.11.2~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c7bec85cfa7711bb2612278eb980d0d14dade3b9;p=jquery-ui.git Draggable: append divs to iframe parent for iframefix This allows the blocking div to move with the iframe in most situations, whereas appending to the body wouldn't. Fixes #9671 --- diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index f724decbc..46b80608c 100644 --- a/tests/unit/draggable/draggable_options.js +++ b/tests/unit/draggable/draggable_options.js @@ -1334,4 +1334,46 @@ test( "zIndex, default, switching after initialization", function() { }); +test( "iframeFix", function() { + expect( 5 ); + + var element = $( "
" ).appendTo( "#qunit-fixture" ).draggable({ iframeFix: true }), + element2 = $( "
" ).appendTo( "#qunit-fixture" ).draggable({ iframeFix: ".iframe" }), + iframe = $( "" ) + .append( "