0👍
✅
Solved with a workaround: each time user switches to the tab in which graphs are contained I manually fire a “resize” window event. This event is listened by the graph library which automatically resizes graphs.
$scope.tabChanged = function(tab){
if(tab.title == "A"){
$timeout(function() {
var evt = $window.document.createEvent('UIEvents');
evt.initUIEvent('resize', true, false, $window, 0);
$window.dispatchEvent(evt);
});
}
};
Not very elegant but it will do, waiting for a library update.