Skip to content

Uncessary vertical scrollbar in a textarea inside a MatFormField. #13161

Closed
@tofesath

Description

@tofesath

Bug, 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

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: cdk/text-field

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions