Bug
I am using for example minRow="24" and nothing occurs in my repo or the example plunker. It does not work so I have to use css... For resize: none won't work either... I had to create a css class for textarea and set params like the following: Nothing happens add minRow to the textarea input and nothing occurs in the ui... i.e. such as row and col this is the plnkr from the example api control the height and with via the api material 2.0.0-beta.3 Angular 4.0.2
I am able to control the textarea with css using a combination of min-width in %'s and max-width in px's <<What is the current behavior?
What are the steps to reproduce?
Providing a Plunker (or similar) is the best way to get the team to see your issue.
https://plnkr.co/edit/xs4znsdKqSDwTgoVz7mI?p=infoWhat is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, browsers are affected?
Is there anything else we should know?
minRows
is actually part of the autosize directive (the minRows
binding is actually deprecated in favor of mdAutosizeMinRows
to make this clearer). If you add autosize in addition to min rows, it will work as expected.
<md-input-container>
<textarea mdInput mdTextareaAutosize mdAutosizeMinRows="6"></textarea>
</md-input-container>
Updated plunker here: https://plnkr.co/edit/aIuBUYDhidMwI3wZ6MDM?p=preview
@kara thank you. Is this as of 2.0.0.3? Also, to activate this do you need to place the mdTextareaAutosize? Is this a Boolean activator?
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
minRows
is actually part of the autosize directive (theminRows
binding is actually deprecated in favor ofmdAutosizeMinRows
to make this clearer). If you add autosize in addition to min rows, it will work as expected.Updated plunker here: https://plnkr.co/edit/aIuBUYDhidMwI3wZ6MDM?p=preview