@@ -236,7 +236,7 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
236236 // Fix double-negative which can happen with RTL support
237237 newValue = newValue . replace ( '--' , '' ) ;
238238
239- angular . element ( elements . paging ) . css ( $mdConstant . CSS . TRANSFORM , 'translate3d (' + newValue + ', 0 , 0)' ) ;
239+ angular . element ( elements . paging ) . css ( $mdConstant . CSS . TRANSFORM , 'translate (' + newValue + ', 0)' ) ;
240240 $scope . $broadcast ( '$mdTabsPaginationChanged' ) ;
241241 }
242242
@@ -620,14 +620,6 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
620620 ctrl . shouldPaginate = shouldPaginate ( ) ;
621621 }
622622
623- /**
624- * Calculates the width of the pagination wrapper by summing the widths of the dummy tabs.
625- * @returns {number } the width of the pagination wrapper in pixels
626- */
627- function calcPagingWidth ( ) {
628- return calcTabsWidth ( getElements ( ) . tabs ) ;
629- }
630-
631623 /**
632624 * @param {Array<HTMLElement> } tabs tab item elements for use in computing total width
633625 * @returns {number } the width of the tabs in the specified array in pixels
@@ -647,9 +639,8 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
647639 }
648640
649641 /**
650- * @returns {number } either the max width as constrained by the container or the max width from an
651- * old version of the Material Design spec.
652- * TODO update max tab width to equal the spec in 1.2.
642+ * @returns {number } either the max width as constrained by the container or the max width from
643+ * the 2017 version of the Material Design spec.
653644 */
654645 function getMaxTabWidth ( ) {
655646 var elements = getElements ( ) ,
@@ -663,24 +654,6 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
663654 return Math . max ( 0 , Math . min ( containerWidth - 1 , specMax ) ) ;
664655 }
665656
666- /**
667- * @returns {number } the min width from an old version of the Material Design spec. This returns
668- * a larger min width if the container width is larger than 600px.
669- * TODO update min tab width to equal the spec in 1.2.
670- */
671- function getMinTabWidth ( ) {
672- var elements = getElements ( ) ,
673- containerWidth = elements . canvas . clientWidth ,
674- xsBreakpoint = 600 ,
675-
676- // See https://material.io/design/components/tabs.html#spec which has been updated to 90px.
677- specMin = containerWidth > xsBreakpoint ? 160 : 72 ;
678-
679- // Do the spec minimum, or the canvas width; whichever is *smaller* (tabs larger than the canvas
680- // width can break the pagination) but not less than 0
681- return Math . max ( 0 , Math . min ( containerWidth - 1 , specMin ) ) ;
682- }
683-
684657 /**
685658 * Re-orders the tabs and updates the selected and focus indexes to their new positions.
686659 * This is triggered by `tabDirective.js` when the user's tabs have been re-ordered.
0 commit comments