evyros / angularjs-autogrow

AngularJS 1.x directive for auto-grow / auto-resize of textarea elements.
16 stars 15 forks source link

Auto-resize on load? #1

Closed thecommonthread closed 8 years ago

thecommonthread commented 8 years ago

Is there a way to possibly have the textarea boxes autogrow to fit the value already in them when the page/view loads with them in it?

marcdakar commented 8 years ago

you can add below addEventListener setTimeout(function(){ $scope.autogrowFn(); },10);

evyros commented 8 years ago

I've pushed a proper solution in the newest published release. Enjoy!