Skip to content

Commit

Permalink
fix(mdTabs): Tab label width correction in mdDialog
Browse files Browse the repository at this point in the history
The Tab label width is set correctly when used in a dialog.
Changed one line to a previous version (1 commit prior to 4a16038)
That commit addressed issue angular#4743. This issue is not reproduced by reverting this line of code.

Addressing issues angular#4834 angular#4873 angular#4744
  • Loading branch information
FrankMeyer committed Oct 5, 2015
1 parent 71674b0 commit 0a70e48
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 @@ -486,7 +486,7 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
*/
function shouldPaginate () {
if (ctrl.noPagination || !loaded) return false;
var canvasWidth = $element.prop('clientWidth');
var canvasWidth = Math.min($element.prop('clientWidth'), ctrl.maxTabWidth);
angular.forEach(elements.dummies, function (tab) { canvasWidth -= tab.offsetWidth; });
return canvasWidth < 0;
}
Expand Down

0 comments on commit 0a70e48

Please sign in to comment.