- do not parseInt but parseFloat
This commit is contained in:
Stuardo -StR- Rodríguez 2016-02-18 11:33:49 -05:00
commit b979982cc5
4 changed files with 5 additions and 5 deletions

View file

@ -1117,7 +1117,7 @@
throw new Error('Invalid height');
}
heightUnit = match[2];
height = parseInt(match[1]);
height = parseFloat(match[1]);
}
return {height: height, unit: heightUnit};
}