-
Notifications
You must be signed in to change notification settings - Fork 159
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
paper-textarea does not respect max-rows #158
Comments
It looks like the behavior is correct when you have newlines in the text. The case I'm describing is when you have long text that wraps to multiple lines: Based on the description of the maxRows property (The maximum number of rows this element can grow to until it scrolls.) I would expect it to scroll once the text has wrapped past maxRows lines. |
Ah, yes, I think that's related to PolymerElements/iron-autogrow-textarea#32 |
Yup. I agree with nloewen's conclusion that constrain should line wraps into account. |
so max-rows counts the new lines instead of the 'visible' row counts? i also noticed in the docs its maxRows not max-rows, but max-rows works.. i'm new to git so if i'm retreading something my apologies. |
You should use Closing this, since it seems to be an underlying |
A solution would be to block the height of the iron-autogrow-textarea. It works but you have to compute the size in pixel.
|
Looks like the demo of this functionality in the elements catalog is broken: https://elements.polymer-project.org/elements/paper-input?view=demo:demo/index.html
The text was updated successfully, but these errors were encountered: