themyth92/ngx-lightbox

Angular 12 and bootstrap scroll bar issue

Asimov500 opened this issue · 1 comments

I am having an issue that when the lightbox is open, it is creating a scrollbar on the side.
I am using Angular 12 and bootstrap. I know this has been asked a long time ago, but is there a way to solve it?

The lightbox seems to be adding height to the page. Even if I have a page where there is already a scrollbar, the lightbox is making the page taller.

I have added the option _lightboxConfig.disableScrolling=true; which stops them scrolling the page,but it is still showing.

Is there anything I can do to fix the problem?

Forgot to say I am using ngx-lightbox 2.30.
For now I have had to freeze the scrollbar, but I have used non angular lightbox, and it has never done this in other pages that I have made.
It seems the lightbox is adding alot of height, even though the image fits in the screen.