Viewport Size fix

This commit is contained in:
Pavel Reznikov 2016-02-19 09:33:29 -08:00
commit b8bd181970
4 changed files with 4 additions and 4 deletions

View file

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