Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/src/autosize.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AutosizeDirective implements AfterViewInit, DoCheck {
}

@HostListener('input')
private resize() {
public resize() {
const textarea = this.elem.nativeElement as HTMLTextAreaElement;
// Calculate border height which is not included in scrollHeight
const borderHeight = textarea.offsetHeight - textarea.clientHeight;
Expand Down