Skip to content

MdTextareaAutosize: textarea control not sized correctly when number of lines is an odd number #4948

@StevenRasmussen

Description

@StevenRasmussen

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

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions