Skip to content

Commit

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

Prevents `textarea` instances from resizing beyond their `md-input-container`.
  • Loading branch information
crisbeto authored and mmalerba committed Jul 7, 2017
1 parent b8c900c commit 36dc75a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/input/input-container.scss
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 36dc75a

Please sign in to comment.