You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
I'm not sure how to set the max number of rows on an autogrow textarea. I simply set rows="3"...
The issue is that when I type a word and hit Enter, the word scrolls up and disappears. The only visible line waits that I type something else on the second line. As soon as I type a character, the textarea expands and shows 2 lines. So my first word becomes visible again. This happens again when I hit Enter on the second line. It scrolls up, hiding the first line, until I type a fresh new char.
I imagine this is not the intended behavior...
Secondary question: my dialog is in a md-dialog. When the textarea grows, the size (height) of the dialog increases abruptly. Is it possible to have a smooth growing animation?
The "rows" are considered the maximum (although there is a PR to change that behaviour, see #7991 ), e.g. rows=3 will make it a maximum of 3 lines high. After they're reached, the textarea should get the "md-textarea-scrollable" which should make it scrllable. What OS are you testng on (OSX/iOS don't show scrollbars until you start scrolling)?
As for the animation, we don't support it out-of-the-box, but you can manually add a transition on the height.
I checked under various desktop browsers under Windows.
The issue is not about scrollbar. It is about typing Enter and autogrow. When I type Enter, it does not grow one line. Instead, it scrolls one line. It does grow only after I type a new char on the new line.
They are possible, but you should keep in mind that the framerate might not be very good on slower devices/browsers, because animating the height causes layout for each frame.
I'll close this issue since it should be resolved when the PR gets merged, but we can continue discussing if you need any more help.
Activity
crisbeto commentedon Apr 15, 2016
The "rows" are considered the maximum (although there is a PR to change that behaviour, see #7991 ), e.g.
rows=3will make it a maximum of 3 lines high. After they're reached, the textarea should get the "md-textarea-scrollable" which should make it scrllable. What OS are you testng on (OSX/iOS don't show scrollbars until you start scrolling)?As for the animation, we don't support it out-of-the-box, but you can manually add a transition on the height.
cadilhac commentedon Apr 15, 2016
The issue is not about scrollbar. It is about typing Enter and autogrow. When I type Enter, it does not grow one line. Instead, it scrolls one line. It does grow only after I type a new char on the new line.
crisbeto commentedon Apr 15, 2016
cadilhac commentedon Apr 15, 2016
Thank you.
crisbeto commentedon Apr 15, 2016
I'll close this issue since it should be resolved when the PR gets merged, but we can continue discussing if you need any more help.