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 2387801 commit 6c48750Copy full SHA for 6c48750
src/lib/input/input.ts
@@ -172,7 +172,7 @@ export class MdAutosize implements OnInit {
172
// if line height is explicitly set(to a pixel value), use that
173
if (computedStyles.lineHeight && computedStyles.lineHeight.toLowerCase().indexOf('px') >= 0) {
174
// return stripped of the "px" and as a number
175
- return +computedStyles.lineHeight.replace('px', '');
+ return parseFloat(computedStyles.lineHeight);
176
}
177
178
// create temporary element
0 commit comments