svg-input-elements icon indicating copy to clipboard operation
svg-input-elements copied to clipboard

Cannot set initial height of textarea

Open joeldart opened this issue 12 years ago • 3 comments

it's unintuitive that you can set the initial width of the textarea but not the height. This is useful for cases where you might want to have a reserved spot for the text but no initial text.

joeldart avatar May 05 '13 03:05 joeldart

I fully agree. Right now the textarea grows with the text... a useful feature in some circumstances, but a preferred default behavior should probably be a fixed height and width and scrolling of overflow content.

engelfrost avatar May 06 '13 16:05 engelfrost

I hadn't thought about that, but you're right that the html default for textarea is just as you said: fixed height with overflow scrolling.

I actually like that the textarea grows with the text. I would just like an empty textarea to initially appear multiline despite having 0 lines of text.

joeldart avatar May 06 '13 17:05 joeldart

Yes, we liked it as well, that's why a height property was never implemented :) One option would be a min-height property and a height property that can be set to auto. If you choose to implement something, please feel free.

engelfrost avatar May 07 '13 06:05 engelfrost