We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa4f2d0 commit 86ce62aCopy full SHA for 86ce62a
1 file changed
src/gridstack.js
@@ -98,7 +98,7 @@
98
var height = val;
99
var heightUnit = 'px';
100
if (height && _.isString(height)) {
101
- var match = height.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw)?$/);
+ var match = height.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%)?$/);
102
if (!match) {
103
throw new Error('Invalid height');
104
}
0 commit comments