Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(tabs): fixes issue with tab pagination in Angular 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Messerle committed Jun 9, 2015
1 parent 114dd41 commit 4273f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tabs/js/tabsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $md
}

function shouldPaginate () {
if ($scope.noPagination) return false;
if ($scope.noPagination || !loaded) return false;
var canvasWidth = $element.prop('clientWidth');
angular.forEach(elements.tabs, function (tab) { canvasWidth -= tab.offsetWidth; });
return canvasWidth < 0;
Expand Down

0 comments on commit 4273f52

Please sign in to comment.