angular2-busy icon indicating copy to clipboard operation
angular2-busy copied to clipboard

Overlay not 100% height of page when page has scroll

Open AndreMantas opened this issue 8 years ago • 2 comments

Hi.

Not sure if this has been fixed in recent versions (i have "angular2-busy": "^1.0.2", in my packages.json) but I'm finding this problem: When the page has scroll and an action at the bottom of the page triggers my

<div [ngBusy]="{busy: busy}"></div>

, the spinner and transparent overlay don't occupy all of the page height. It occupies only the part of the page that users see before scrolling down.

Found a fix by changing position: absolute to position: fixed in my busy-loading.sass but the spinner does not stick in the same position during all stages of the loading.

Any tips?

AndreMantas avatar May 11 '17 23:05 AndreMantas

Hi, I solved by editing the 'busy.css' file:

.ng-busy > dynamiccomponent > * { position: fixed; // old: absolute

.ng-busy-backdrop { position: fixed; // old: absolute

ws-gianni avatar Jul 03 '17 14:07 ws-gianni

Adding this css fixed it for me (separate css file, referenced from angular.json, I'd discourage editing library's css file as it will be overwritten each time you reinstall/update it)

.ng-busy-default-spinner, .ng-busy-backdrop { position: fixed; }

adamlubek avatar Dec 14 '18 16:12 adamlubek