Skip to content

Commit 175ac52

Browse files
committed
chore(*): fix lint errors
1 parent 2e797b7 commit 175ac52

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

projects/igniteui-angular/src/lib/toast/toast.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,19 @@ export class IgxToastComponent extends IgxNotificationsDirective implements OnIn
248248
});
249249
}
250250

251+
public ngOnChanges(changes: SimpleChanges) {
252+
if (changes['position'] && this._positionSettings) {
253+
this._positionSettings.verticalDirection = this.calculatePosition();
254+
}
255+
}
256+
251257
private calculatePosition() {
252258
return this.position === 'bottom'
253259
? VerticalAlignment.Bottom
254260
: this.position === 'middle'
255261
? VerticalAlignment.Middle
256262
: VerticalAlignment.Top;
257263
}
258-
259-
public ngOnChanges(changes: SimpleChanges) {
260-
if (changes['position'] && this._positionSettings) {
261-
this._positionSettings.verticalDirection = this.calculatePosition();
262-
}
263-
}
264264
}
265265

266266
/**

0 commit comments

Comments
 (0)