From 9493839f23b6ff71aacb9cb8fe8fde6c8d0ecd61 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Tue, 27 Jan 2015 22:08:05 -0500 Subject: Resizable: correct width when grid approaches zero Fixes #10590 --- tests/unit/resizable/resizable_options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/unit/resizable/resizable_options.js b/tests/unit/resizable/resizable_options.js index c2d031fe7..cacebf05c 100644 --- a/tests/unit/resizable/resizable_options.js +++ b/tests/unit/resizable/resizable_options.js @@ -310,12 +310,12 @@ test( "grid - maintains grid with padding and border when approaching no dimensi height: 80 }).resizable({ handles: "all", - grid: 50 + grid: [ 50, 12 ] }); TestHelpers.resizable.drag( handle, 50, 50 ); equal( target.outerWidth(), 50, "compare width" ); - equal( target.outerHeight(), 50, "compare height" ); + equal( target.outerHeight(), 52, "compare height" ); }); test("ui-resizable-se { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() { -- cgit v1.2.3