-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
MdTextareaAutosize: textarea control not sized correctly when number of lines is an odd number #4948
Comments
I used icognito mode in Chrome and turned off all extensions with the same result. Also just tried IE 11 and it looks like it might be working? It looks like there's scroll buttons but they're disabled and I think this might just be the default behavior of IE. However, it doesn't show the little icon in the bottom right corner that allows you to drag and resize the textarea: Edge doesn't show the scroll bars but it also doesn't show the resize icon. It also appears to resize with extra space at the bottom when there is more than 2 rows of text: Here's my OS info as well: |
Except for the chrome vertical scroll bar, the other browsers here show the same behavior seen in your images. I also use Window 10 with 1920 x 1080 resolution screen. |
FYI - a good workaround or possible solution is just to set the style to: 'overflow:hidden' of the textarea. Any chance we can get this merged into the source without me submitting a PR? |
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. |
Bug, feature request, or proposal:
Bug: When using the MdTextareaAutosize with a textarea and the number of lines that the text occupies is an odd number, the control size is slightly too small and scroll bars appear.
What is the expected behavior?
The control should be resized such that scroll bars never appear.
What is the current behavior?
Described above in the bug.
What are the steps to reproduce?
See plunker here
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 4.1.0
Material: 2.0.0-beta.6
TypeScript: 2.3.2
The text was updated successfully, but these errors were encountered: