fix parseHeight

This commit is contained in:
Pavel Reznikov 2016-02-22 20:43:44 -08:00
parent 23cd18804a
commit 707916d6da

View file

@ -103,7 +103,7 @@
if (!match) {
throw new Error('Invalid height');
}
heightUnit = match[2];
heightUnit = match[2] || 'px';
height = parseFloat(match[1]);
}
return {height: height, unit: heightUnit};