angular-elastic
angular-elastic copied to clipboard
How to ensure sizing adjusted when text area is initially hidden
I found that the initial size is not adjusted properly if the textarea starts out hidden and is then shown via an ng-show (or ng-hide) binding later.
Adding this line fixes the problem in some cases:
scope.$watch(attrs.ngShow, forceAdjust);
I added this right after
$win.bind('resize', forceAdjust);
Did you add the above code in elastic.js or your own code? I'm having the same issue.
I ran into this as well. Using ng-if
was a pretty painless workaround for myself.
Archiving repository.