banthagroup / fslightbox-react

Basic version of Fullscreen Lightbox for React.js. Website: https://fslightbox.com/react
MIT License
169 stars 23 forks source link

Disable image scaling #154

Open a8c71 opened 4 years ago

a8c71 commented 4 years ago

Hello.

Thank you guys for this library, it's really good.

I need to disable the scaling of the image to handle image dimensions outside fslightbox-react.

I've tried removing the transform: scale() bit from the style that is added, but the translate() is removed as well and the slides appear on top of each other, as this value is calculated according to the current slide.

How can the scaling be disabled? Is there any workaround to the slides on top of each other issue?

piotrzdziarski commented 3 years ago

Are you using pro or basic version? What do you mean by disabling image scaling. Not adding dimensions - width and height to image? How are you trying to handle image dimensions outside of lightbox, modifying it's code?