Angular Material Textarea Auotgrow

1.9k Views Asked by At

I am using Angular Material textarea. I want to force the autogrow feature to only expand vertically and not horizontally. I tried to set the width, but that is not helping.

<md-input-container style="width: 600px">
  <textarea mdInput formControlName="description"
    [(ngModel)]="description" md-textarea-scrollable rows="6" style="width: 650px"></textarea>
</md-input-container>

How can I achieve this?

1

There are 1 best solutions below

0
Jay On

"style= resize:vertical"

this only allows the dragging to happen vertically and not horizontally.