diff --git a/angular-ui-tab-scroll.js b/angular-ui-tab-scroll.js index 7cba091..39193d9 100644 --- a/angular-ui-tab-scroll.js +++ b/angular-ui-tab-scroll.js @@ -246,7 +246,11 @@ angular.module('ui.tab.scroll', []) $scope.$apply(); }; - //hello my friend jake weary + $.fn.doRecalculate = function() { + init(); + $scope.$apply(); + }; + $(window).on('resize', initAndApply); //we initialize by watching changes on the inner tabset's tabs collection