File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
projects/igniteui-angular/src/lib/toast Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -248,19 +248,19 @@ export class IgxToastComponent extends IgxNotificationsDirective implements OnIn
248
248
} ) ;
249
249
}
250
250
251
+ public ngOnChanges ( changes : SimpleChanges ) {
252
+ if ( changes [ 'position' ] && this . _positionSettings ) {
253
+ this . _positionSettings . verticalDirection = this . calculatePosition ( ) ;
254
+ }
255
+ }
256
+
251
257
private calculatePosition ( ) {
252
258
return this . position === 'bottom'
253
259
? VerticalAlignment . Bottom
254
260
: this . position === 'middle'
255
261
? VerticalAlignment . Middle
256
262
: VerticalAlignment . Top ;
257
263
}
258
-
259
- public ngOnChanges ( changes : SimpleChanges ) {
260
- if ( changes [ 'position' ] && this . _positionSettings ) {
261
- this . _positionSettings . verticalDirection = this . calculatePosition ( ) ;
262
- }
263
- }
264
264
}
265
265
266
266
/**
You can’t perform that action at this time.
0 commit comments