From ef9a01f881f81ce77324fd61a7e6edf992a80940 Mon Sep 17 00:00:00 2001 From: shur Date: Wed, 20 Aug 2014 10:30:14 +0300 Subject: [PATCH] Fix: One column bug in some cases. This script sometimes gets the wrong width of the container. Because of this, the number of columns is calculated incorrectly. in my case I solved this problem by minor change resize function: --- jquery.grid-a-licious.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.grid-a-licious.js b/jquery.grid-a-licious.js index b484da4..ce3644a 100644 --- a/jquery.grid-a-licious.js +++ b/jquery.grid-a-licious.js @@ -326,7 +326,7 @@ resize: function () { // delete columns in box - this.box.find($('.galcolumn')).remove(); + this.box.find(this.options.selector).unwrap(); // build columns this._setCols(); // build grid