Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Smart Area and Angular Tabs #39

Open
vishnucr opened this issue Oct 9, 2017 · 1 comment
Open

Smart Area and Angular Tabs #39

vishnucr opened this issue Oct 9, 2017 · 1 comment

Comments

@vishnucr
Copy link

vishnucr commented Oct 9, 2017

Smart area is not working inside angular tabs. the fake area and original textarea are seperated and the width of textarea is not taken.

@tomershatz
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants