File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export class MatTabBody implements OnInit, OnDestroy {
120
120
private _positionIndex : number ;
121
121
122
122
/** Subscription to the directionality change observable. */
123
- private _dirChangeSubscription : Subscription = Subscription . EMPTY ;
123
+ private _dirChangeSubscription = Subscription . EMPTY ;
124
124
125
125
/** Tab body position state. Used by the animation trigger for the current state. */
126
126
_position : MatTabBodyPositionState ;
@@ -156,6 +156,7 @@ export class MatTabBody implements OnInit, OnDestroy {
156
156
constructor ( private _elementRef : ElementRef ,
157
157
@Optional ( ) private _dir : Directionality ,
158
158
// TODO(paul): make the changeDetectorRef required when doing breaking changes.
159
+ // @deletion -target 7.0.0
159
160
changeDetectorRef ?: ChangeDetectorRef ) {
160
161
161
162
if ( this . _dir && changeDetectorRef ) {
@@ -231,8 +232,8 @@ export class MatTabBody implements OnInit, OnDestroy {
231
232
232
233
if ( ( dir == 'ltr' && this . origin <= 0 ) || ( dir == 'rtl' && this . origin > 0 ) ) {
233
234
return 'left-origin-center' ;
234
- } else {
235
- return 'right-origin-center' ;
236
235
}
236
+
237
+ return 'right-origin-center' ;
237
238
}
238
239
}
You can’t perform that action at this time.
0 commit comments