Skip to content

Commit

Permalink
fix(input): prevent textarea from resizing beyond input container (an…
Browse files Browse the repository at this point in the history
…gular#5333)

Prevents `textarea` instances from resizing beyond their `md-input-container`.
  • Loading branch information
crisbeto authored and amcdnl committed Jul 8, 2017
1 parent 8bb4aff commit e57b59a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ $mat-input-underline-height: 1px !default;
padding: 0;
width: 100%;

// Prevent textareas from being resized outside the container.
max-width: 100%;
resize: vertical;

// Needed to make last line of the textarea line up with the baseline.
vertical-align: bottom;

Expand Down

0 comments on commit e57b59a

Please sign in to comment.