victos / angular-opensource

angular opensource modules
MIT License
20 stars 21 forks source link

The spinner and the text are not visible if page has scrolled down #17

Closed ghost closed 4 years ago

ghost commented 5 years ago

The spinner and 'Please wait' text are not visible if the page has been scrolled down.

The issue is partially fixed if the following css is added from here .ng-busy-default-spinner, .ng-busy-backdrop { position: fixed; }

The spinner is displayed alright, but the text 'Please wait' is gone. Any ideas how to fix this?

victos commented 5 years ago

The spinner is supposed to cover the element which has the directive ngBusy, so if the element is can't be seen in the page, we can't see the spinner. Maybe you can place the directive ngBusy on the body or root div in the page.

salifukayta commented 4 years ago

Good to know, I did put the directive on an element with an *ngIf and wondered why it's not working. Thanks for the information :)