]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable Tests: Fix containment tests
authorMike Sherov <mike.sherov@gmail.com>
Mon, 4 Mar 2013 16:39:14 +0000 (11:39 -0500)
committerMike Sherov <mike.sherov@gmail.com>
Mon, 4 Mar 2013 16:39:14 +0000 (11:39 -0500)
tests/unit/draggable/draggable_options.js

index c000a136b7948ec22c24653f193eb7e0cc9f340a..ccbe7224ac7e9030740b9817b6234d47d8496057 100644 (file)
@@ -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 );
 });