aurbano / smart-area

:memo: Textareas on Steroids - AngularJS 1 directive
https://aurbano.github.io/smart-area
MIT License
67 stars 19 forks source link

Doesn't resize with textarea #11

Open aurbano opened 9 years ago

aurbano commented 9 years ago

Simple fix, will be out soon. The fake textarea is not tracking resize events on the real textarea.

jagged3dge commented 9 years ago

Has this been fixed? The Plunkr demo for autogrow using msd-elastic is working for me on Win7 Chrome v43.

aurbano commented 9 years ago

@jagged3dge I need to do some more testing before I close this, but I've seen problems with x-axis resizing. I'll test as soon as possible

jagged3dge commented 9 years ago

Wow. Thanks for the blazing fast reply :)

I'm glad you havent given up on this yet ^_^ Lookin' forward to the fix ...

Cheers!

Kind Regards,

Giridhar

On Wed, Jul 15, 2015 at 1:56 PM, Alejandro U. Alvarez < notifications@github.com> wrote:

@jagged3dge https://github.com/jagged3dge I need to do some more testing before I close this, but I've seen problems with x-axis resizing. I'll test as soon as possible

— Reply to this email directly or view it on GitHub https://github.com/aurbano/smart-area/issues/11#issuecomment-121527529.

JacoBezuidenhout commented 8 years ago

+1 same problem here. Any temp workaround?

tomershatz commented 6 years ago

I had the same problem so I added the following lines to the smartArea directive at the end of link function: angular.element($window).bind('resize', function() { scope.fakeAreaElement.width(textArea.width()); scope.$digest(); }); and I added the $window to the directive dependency injections