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