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
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/**
You can’t perform that action at this time.
0 commit comments