From 0f6ab48b0b65587a3d8fab2e26bd7c7383966ac6 Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Thu, 11 Dec 2014 21:50:18 -0800 Subject: [PATCH] update gridstack.js --- gridstack.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gridstack.js b/gridstack.js index 9888c79..5783e88 100644 --- a/gridstack.js +++ b/gridstack.js @@ -685,7 +685,10 @@ if (typeof val == 'undefined') { return this.opts.cell_height; } - this.opts.cell_height = parseInt(val) || this.opts.cell_height; + val = parseInt(val); + if (val == this.opts.cell_height) + return; + this.opts.cell_height = val || this.opts.cell_height; this._update_styles(); };