Skip to content

Commit 646cb31

Browse files
committed
Address comments
1 parent fa3eae6 commit 646cb31

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/tabs/tab-body.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class MatTabBody implements OnInit, OnDestroy {
120120
private _positionIndex: number;
121121

122122
/** Subscription to the directionality change observable. */
123-
private _dirChangeSubscription: Subscription = Subscription.EMPTY;
123+
private _dirChangeSubscription = Subscription.EMPTY;
124124

125125
/** Tab body position state. Used by the animation trigger for the current state. */
126126
_position: MatTabBodyPositionState;
@@ -156,6 +156,7 @@ export class MatTabBody implements OnInit, OnDestroy {
156156
constructor(private _elementRef: ElementRef,
157157
@Optional() private _dir: Directionality,
158158
// TODO(paul): make the changeDetectorRef required when doing breaking changes.
159+
// @deletion-target 7.0.0
159160
changeDetectorRef?: ChangeDetectorRef) {
160161

161162
if (this._dir && changeDetectorRef) {
@@ -231,8 +232,8 @@ export class MatTabBody implements OnInit, OnDestroy {
231232

232233
if ((dir == 'ltr' && this.origin <= 0) || (dir == 'rtl' && this.origin > 0)) {
233234
return 'left-origin-center';
234-
} else {
235-
return 'right-origin-center';
236235
}
236+
237+
return 'right-origin-center';
237238
}
238239
}

0 commit comments

Comments
 (0)