@@ -236,7 +236,7 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
236
236
// Fix double-negative which can happen with RTL support
237
237
newValue = newValue . replace ( '--' , '' ) ;
238
238
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)' ) ;
240
240
$scope . $broadcast ( '$mdTabsPaginationChanged' ) ;
241
241
}
242
242
@@ -620,14 +620,6 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
620
620
ctrl . shouldPaginate = shouldPaginate ( ) ;
621
621
}
622
622
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
-
631
623
/**
632
624
* @param {Array<HTMLElement> } tabs tab item elements for use in computing total width
633
625
* @returns {number } the width of the tabs in the specified array in pixels
@@ -647,9 +639,8 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
647
639
}
648
640
649
641
/**
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.
653
644
*/
654
645
function getMaxTabWidth ( ) {
655
646
var elements = getElements ( ) ,
@@ -663,24 +654,6 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
663
654
return Math . max ( 0 , Math . min ( containerWidth - 1 , specMax ) ) ;
664
655
}
665
656
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
-
684
657
/**
685
658
* Re-orders the tabs and updates the selected and focus indexes to their new positions.
686
659
* This is triggered by `tabDirective.js` when the user's tabs have been re-ordered.
0 commit comments