mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(input): prevent textarea from resizing beyond input container (#5333)
Prevents `textarea` instances from resizing beyond their `md-input-container`.
This commit is contained in:
committed by
mmalerba
parent
b8c900c3f5
commit
36dc75a39a
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user