This commit is contained in:
Pavel Reznikov 2016-02-18 09:51:30 -08:00
commit a830cc51d0
3 changed files with 3 additions and 3 deletions

2
dist/gridstack.js vendored
View file

@ -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');
}