mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Draggable Tests: Fix containment tests
This commit is contained in:
parent
5a04d237dd
commit
ca0b4b8a6c
@ -301,7 +301,7 @@ test( "{ containment: [x1, y1, x2, y2] }", function() {
|
|||||||
var element = $( "#draggable1" ).draggable(),
|
var element = $( "#draggable1" ).draggable(),
|
||||||
eo = element.offset();
|
eo = element.offset();
|
||||||
|
|
||||||
element.draggable( "option", "containment", [ eo.left, eo.top, eo.left + element.width() + 5, eo.left + element.width() + 5 ] );
|
element.draggable( "option", "containment", [ eo.left, eo.top, eo.left + element.width() + 5, eo.top + element.height() + 5 ] );
|
||||||
|
|
||||||
TestHelpers.draggable.testDrag( element, element, -100, -100, 0, 0 );
|
TestHelpers.draggable.testDrag( element, element, -100, -100, 0, 0 );
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user