Closed nkerkin closed 9 years ago
Am also seeing this issue.
+1
Looks like the same issue mentioned here: https://groups.google.com/forum/#!topic/ace-discuss/9oSvtlMuEqk
This might not be the best solution, but this does fix it: http://plnkr.co/edit/AoHjz4IXWcJXn6eLAFBb?p=preview
scope.$watch(function() {
return [elm[0].offsetWidth, elm[0].offsetHeight];
}, function() {
acee.resize();
acee.renderer.updateFull();
}, true);
@ricochet1k That's cool! Can you make a PR with it ?
I found a similar problem when using ui-ace with ng-show in a ng-repeat. It's probably related to this bug. http://plnkr.co/edit/7BAtJ8vq0zP5rqbmcti6?p=preview
Found a solution : use ng-if instead of ng-show. Everything works fine that way.
Alright It might be because Ace has to be refreshed when using ng-show/hide with the resize
function
Check out this plunker http://plnkr.co/edit/zNdlc3jts4a8w3kS08uw?p=preview
The second editor doesn't render until you make a modification.