mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Adding support for containment
fixed GitHub Actions / Grunt based tests with Node.js 14.x
This commit is contained in:
parent
a5751c6567
commit
6c6705238f
@ -571,8 +571,8 @@ QUnit.test( "Open followed by close during show effect", function( assert ) {
|
||||
|
||||
QUnit.test( "Dialog can't break out containment", function( assert ) {
|
||||
assert.expect( 1 );
|
||||
var box = $( '<div id="xxx"></div>' ).css( {
|
||||
height: '500px',border: '0px', margin:'0px', width:'500px', position: 'absolute', bottom: '0px', right: '0px', left: '50px', top: '50px'
|
||||
var box = $( '<div></div>' ).css( {
|
||||
height: "500px", border: "0px", margin: "0px", width: "500px", position: "absolute", bottom: "0px", right: "0px", left: "50px", top: "50px"
|
||||
} ).appendTo( "body" ),
|
||||
element = $( "<div>X</div>" ).dialog( { containment: box, position: { at: "left top", of: box } } ), // open on left top corner
|
||||
dlg = element.dialog( "widget" ),
|
||||
|
Loading…
Reference in New Issue
Block a user