diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index 2d182fb6b..08e639b34 100644 --- a/tests/unit/draggable/draggable_options.js +++ b/tests/unit/draggable/draggable_options.js @@ -301,7 +301,7 @@ test( "{ containment: [x1, y1, x2, y2] }", function() { var element = $( "#draggable1" ).draggable(), 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 ); });