Skip to content

Commit f53d055

Browse files
committed
fixup! fix(cdk/text-field): autosize text areas using the placeholder
1 parent f6da841 commit f53d055

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cdk/text-field/autosize.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,6 @@ export class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDestroy {
274274
}
275275

276276
const scrollHeight = this._measureScrollHeight();
277-
278-
// The measuring class includes a 2px padding to workaround an issue with Chrome,
279-
// so we account for that extra space here by subtracting 4 (2px top + 2px bottom).
280277
const height = Math.max(scrollHeight, this._cachedPlaceholderHeight || 0);
281278

282279
// Use the scrollHeight to know how large the textarea *would* be if fit its entire value.

0 commit comments

Comments
 (0)