-
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
mdAutosizeMaxRows is doubled in Firefox #6179
Comments
devversion
added a commit
to devversion/material2
that referenced
this issue
Aug 1, 2017
In Firefox it happens that textarea elements are always bigger than the specified amount of rows. This is because Firefox tries to add extra space for the horizontal scrollbar. As a workaround that removes the extra space for the scrollbar, we can just set overflow to hidden. This ensures that there is no invalid calculation of the line height. See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654 Fixes angular#6179
devversion
added a commit
to devversion/material2
that referenced
this issue
Aug 1, 2017
In Firefox it happens that textarea elements are always bigger than the specified amount of rows. This is because Firefox tries to add extra space for the horizontal scrollbar. As a workaround that removes the extra space for the scrollbar, we can just set overflow to hidden. This ensures that there is no invalid calculation of the line height. See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654 Fixes angular#6179
tinayuangao
pushed a commit
that referenced
this issue
Aug 1, 2017
In Firefox it happens that textarea elements are always bigger than the specified amount of rows. This is because Firefox tries to add extra space for the horizontal scrollbar. As a workaround that removes the extra space for the scrollbar, we can just set overflow to hidden. This ensures that there is no invalid calculation of the line height. See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654 Fixes #6179
tinayuangao
pushed a commit
that referenced
this issue
Aug 1, 2017
* fix(autosize): properly detect line-height in firefox In Firefox it happens that textarea elements are always bigger than the specified amount of rows. This is because Firefox tries to add extra space for the horizontal scrollbar. As a workaround that removes the extra space for the scrollbar, we can just set overflow to hidden. This ensures that there is no invalid calculation of the line height. See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654 Fixes #6179 * Fix test name
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug, feature request, or proposal:
Bug
What is the expected behavior?
mdAutosizeMaxRows
should limit textarea rows as expected across browsers.What is the current behavior?
mdAutosizeMaxRows
seems to be doubled in Firefox 54.0.1 on Windows 10What are the steps to reproduce?
Add
mdTextareaAutosize
andmdAutosizeMaxRows="5"
and test in Firefox.https://plnkr.co/edit/6hKDXTJyA2Ytt0epMEMa?p=preview
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 4.2.2
Material: 2.0.0-beta.7, 2.0.0-beta.8
OS: Windows 10
Typescript: 2.3.4
Browser: Firefox 54.0.1
The text was updated successfully, but these errors were encountered: