-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(material/input): uncessary scroll bar on auto-resize textarea in some cases #21619
Conversation
…some cases 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 angular#21560.
Caretaker note: this has the potential of causing screenshot diffs. If that is the case, we should re-evaluate the fix. |
Definitely willing to give the presubmit a try, but I feel like we've had a number of attempts to fix the scrollbars and the fixes always seem to fix the issue for half of people and cause it for the other half 😅 |
…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)
…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)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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 setbox-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.