themyth92 / ngx-lightbox

Lightbox2 use with angular >= 5
MIT License
115 stars 67 forks source link

Angular 12 and bootstrap scroll bar issue #122

Open Asimov500 opened 2 years ago

Asimov500 commented 2 years ago

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?

Asimov500 commented 2 years ago

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.