From ca0b4b8a6c6a687866ea27a992570648e9295721 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Mon, 4 Mar 2013 11:39:14 -0500 Subject: [PATCH] Draggable Tests: Fix containment tests --- tests/unit/draggable/draggable_options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index c000a136b..ccbe7224a 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 ); }); -- 2.39.5