tudorgergely/angular2-stretchy

invoke width with pre-filled input value.

Closed this issue · 2 comments

Add following to ngOnInit to enable width auto assign

setTimeout(()=>{ this.sizeDiv.innerText = this.elementRef.nativeElement.value; this.inputWidth = this.sizeDiv.getBoundingClientRect().width; })

Hi @vincent-cm , can you quickly put up a jsfiddle to show me what issues you have? If you want those changes, can you create a pull-request? I don't completely understand the issues you are having.

Thanks!

@vincent-cm closing this because of inactivity.