Merge pull request #1 from str/str-viewport-size

Viewport Size
This commit is contained in:
Stuardo -StR- Rodríguez 2016-02-18 11:16:42 -05:00
commit 71c15ee64c

View file

@ -1112,7 +1112,7 @@
var height = val;
var heightUnit = 'px';
if (height && _.isString(height)) {
var match = height.match(/^([0-9]+)(px|em|rem)?$/);
var match = height.match(/^([0-9]*\.[0-9]+|[0-9]+)(px|em|rem|vh|vw)?$/);
if (!match) {
throw new Error('Invalid height');
}