From 89bce45fc1179999cc0741151782691021791a24 Mon Sep 17 00:00:00 2001 From: Cosmin Pascu Date: Wed, 30 Apr 2014 04:34:45 -0700 Subject: [PATCH] Fixed issue where existing widget position would be overwritten on gridmap when adding a faux cell to accommodate another widget. --- dist/jquery.gridster.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/jquery.gridster.js b/dist/jquery.gridster.js index 30d7fbb748..0be655b70f 100644 --- a/dist/jquery.gridster.js +++ b/dist/jquery.gridster.js @@ -3689,7 +3689,10 @@ this.gridmap[col] = []; } - this.gridmap[col][row] = false; + if( typeof this.gridmap[col][row] === undefined ){ + this.gridmap[col][row] = false; + } + this.faux_grid.push(coords); return this;