material icon indicating copy to clipboard operation
material copied to clipboard

textarea initial height too tall

Open calebegg opened this issue 11 years ago • 2 comments

In Chrome, the initial height of a <textarea> in an <md-input-container> is set to the height of two lines of text, but according to the Material spec, it should start out at the height of a normal text field and expand as the user types more

http://www.google.com/design/spec/components/text-fields.html#text-fields-multi-line-text-field

This can be demonstrated on the angular material site demo page:

https://material.angularjs.org/#/demo/material.components.input

(just delete all the content from "Biography", for example).

calebegg avatar Apr 03 '15 19:04 calebegg

It's not just a Chrome issue. Same think on Safari and Firefox also like below. There is one extra line.

screen shot 2015-04-10 at 12 02 32

lkaragol avatar Apr 10 '15 09:04 lkaragol

:+1:

maelfrize avatar May 29 '15 10:05 maelfrize