From d6f97b7ef565a7e715c4c87f73a45037f83a73ae Mon Sep 17 00:00:00 2001 From: r9k Date: Tue, 27 Aug 2013 21:17:11 -0400 Subject: [PATCH] Fix for overlapping boxes It seems there was a typo when initializing the grid array. This caused some grid cells to not be set as "used" and therefore, caused overlapping later on. --- jquery.nested.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.nested.js b/jquery.nested.js index 773b79a..264f7fa 100644 --- a/jquery.nested.js +++ b/jquery.nested.js @@ -289,7 +289,7 @@ if (!Object.keys) { while (true) { - for (var y = col; y >= 0; y--) { + for (var y = row; y >= 0; y--) { if (this.gridrow[gridy + y]) break; this.gridrow[gridy + y] = new Object; for (var x = 0; x < this.columns; x++) { @@ -495,4 +495,4 @@ if (!Object.keys) { return this; } -})(jQuery); \ No newline at end of file +})(jQuery);