silencesys / silentbox

A lightbox inspired Vue.js component.
https://silentbox.rocek.dev
MIT License
296 stars 50 forks source link

thumbnailHeight does not maintain aspect ratio #28

Closed lukasvida closed 4 years ago

lukasvida commented 4 years ago

Hi, when I use thumbnailWidth, the resulting <img> tag gets specified width and height=auto, but when I use thumbnailHeight, both height and width are set to that specified value. Shouldn't thumbnailHeight preserve aspect ratio too?

silencesys commented 4 years ago

Hello, thank you for reporting the issue, it should be fixed in version 2.1.x. 🙂