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

Commit 4273f52

Browse files
author
Robert Messerle
committed
fix(tabs): fixes issue with tab pagination in Angular 1.4
1 parent 114dd41 commit 4273f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/tabs/js/tabsController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $md
260260
}
261261

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

0 commit comments

Comments
 (0)