From 6e0aab47800ec7463ae0d9bf476d96b83f8434cf Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Thu, 18 Feb 2016 09:49:33 -0800 Subject: [PATCH] Revert "Viewport Size" --- src/gridstack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gridstack.js b/src/gridstack.js index 96f293a..417cd54 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -1112,7 +1112,7 @@ var height = val; var heightUnit = 'px'; if (height && _.isString(height)) { - var match = height.match(/^([0-9]*\.[0-9]+|[0-9]+)(px|em|rem|vh|vw)?$/); + var match = height.match(/^([0-9]+)(px|em|rem)?$/); if (!match) { throw new Error('Invalid height'); }