Commit 210c7e0
fix(material/input): uncessary scroll bar on auto-resize textarea in some cases (#21619)
It's common for apps to set `box-sizing: border-box` on all elements in the app which ends
up causing unnecessary scroll bars on auto-resizing textareas. These changes explicitly
set `box-sizing: content-box` to fix it.
Note that ideally we'd do this at the `cdk/text-field` level since it is the one responsible
for resizing the textarea, but we generally try to avoid changing the user's layout through
the CDK.
Fixes #21560.
(cherry picked from commit 915791b)1 parent f911426 commit 210c7e0
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
0 commit comments