Uncessary vertical scrollbar in a textarea inside a MatFormField.
See original GitHub issueBug, feature request, or proposal:
The vertical scrollbar is displayed, when count of rows does not reach maxRows
.
What is the expected behavior?
The vertical scrollbar is displayed only if count of rows is more than max maxRows
.
What is the current behavior?
The vertical scrollbar is visible, when count of rows is between minRows
and maxRows
.
What are the steps to reproduce?
Min rows sets to 2. Max rows sets to 5. Add some text in a 3 rows, everything is correct. The vertical scrollbar is visible on a 4th row (something wrong) but on 5th row is invisible. (correct). https://stackblitz.com/edit/angular-v6bw5l
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular - 6.0.1, material - 6.2.0, browser - chrome
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Remove scrollbars from textarea - Stack Overflow
I was able to get rid of my scroll bar on the body of text by removing my max-height attribute ...
Read more >How to Hide Scrollbars with CSS - W3docs
By default, the <textarea> element comes with a vertical scrollbar. It helps the user to enter and review their text by scrolling up...
Read more >Content Jumping (and How To Avoid It) | CSS-Tricks
To fix it, I used the browser's DevTools to measure the height of the resulting content and hardcoded it as a min-height for...
Read more >Form Element - Lightning Design System
To vertically stack <label> and <input> pairs, place slds-form-element_stacked on the div with the class of slds-form-element for optimal spacing. Text Input.
Read more >Default Theme Changelog - KendoReact - Telerik
masked-textbox: Use high-level input for masked textbox base ... chat: remove redundant textbox styles (339c301); chat: scroll buttons ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Guys seems like I figured out what is the problem… Just try to set box-sizing: content-box to textarea element and everything goes well then. Recalculation doesn’t take into account box-sizing: border-box.