themyth92 / ngx-lightbox

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

Scroll when open lightbox #5

Closed richardlnnr closed 5 years ago

richardlnnr commented 6 years ago

Hi! When i open my lightbox, the lightboxOverlay generate an scroll in my page.

The page, without scroll. image

The lightbox open image

The lightbox open with disableScrolling: true. In this case, the scroll is hidden, but the overley don't assume the full width image

themyth92 commented 6 years ago

Ok tks. I will take a look. Normally something to do with styling I guess.

mjdiaz25 commented 6 years ago

Is there any update on this issue? I'm facing this same behaviour.

themyth92 commented 6 years ago

Sorry I just take a look. Can try to change the fitImageInViewPort to true. Seems like on your image, that value is manually set to false.

themyth92 commented 6 years ago

If you fitImageInViewPort to false, it will use the real image width from you image and dont really care abt the window viewport width.

azhararmar commented 5 years ago

I have the same issue even when I use fitImageInViewPort set to true, It adds extra margin in the bottom with scrolling enabled.

Asimov500 commented 2 years ago

I have the same issue even when I use fitImageInViewPort set to true, It adds extra margin in the bottom with scrolling enabled.

Did you find an answer to this. I am thinking a CSS over-ride might sort it.