From 36dc75a39a26d958f708860b00a4f2cd44ee0457 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 7 Jul 2017 19:01:33 +0200 Subject: [PATCH] fix(input): prevent textarea from resizing beyond input container (#5333) Prevents `textarea` instances from resizing beyond their `md-input-container`. --- src/lib/input/input-container.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/input/input-container.scss b/src/lib/input/input-container.scss index f1e974f77607..b92c11164902 100644 --- a/src/lib/input/input-container.scss +++ b/src/lib/input/input-container.scss @@ -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;