material icon indicating copy to clipboard operation
material copied to clipboard

md-input-container: growTextarea should be optional and should be possible to set max height

Open yarl opened this issue 11 years ago • 12 comments

  1. md-input-container needs parameter that disables autogrow of <textarea>.
  2. There should be possible to set maximum height of <textarea> inside md-input-container if autogrow is enabled. If text height inside is bigger than <textarea> height, overflow scrollbar should appear.

yarl avatar Jan 16 '15 12:01 yarl

+1

DmitryEfimenko avatar Feb 24 '15 20:02 DmitryEfimenko

+1!

eckyputrady avatar Feb 26 '15 04:02 eckyputrady

+1

no-more avatar Mar 16 '15 05:03 no-more

+1

rahul18gupta avatar Mar 16 '15 17:03 rahul18gupta

+1

sazonenka avatar Mar 18 '15 18:03 sazonenka

+1

peterpisljar avatar Mar 19 '15 10:03 peterpisljar

A possible workaround though not perfect is to wrap the md-input-container containing the textarea with the following div:

<div style="height: 7rem; overflow-y: auto;" scroll-glue> </div>

I used scroll-glue directive to keep the containing div scroll stick to the bottom while its height is growing: https://github.com/Luegg/angularjs-scroll-glue

ereztison avatar Mar 19 '15 16:03 ereztison

@ereztison Unfortunately, your "div" was cut off. Could you, please, provide it once again?

sazonenka avatar Mar 20 '15 00:03 sazonenka

+1

breezewish avatar Mar 21 '15 07:03 breezewish

@sazonenka: I updated my comment, you're welcome to take a look.

ereztison avatar Mar 22 '15 10:03 ereztison

@ereztison Thanks!

sazonenka avatar Mar 23 '15 05:03 sazonenka

+1

crrazymind avatar Mar 24 '15 17:03 crrazymind