lukasz-galka / ngx-gallery

Angular image gallery plugin
https://lukasz-galka.github.io/ngx-gallery-demo/
MIT License
436 stars 172 forks source link

how to change height dynamically #259

Open smkh0 opened 5 years ago

smkh0 commented 5 years ago

Hello, Thanks for the great component. I have one unsolved issue. I'd like to change height proportionally when width is changing. Using many breakpoints is hardly a good idea. With NgxGalleryImageSize.Cover image gets clipped and with NgxGalleryImageSize.Contain white spaces appear on top and between image and thumbnails. Any way to have something like height: auto to change height dynamically together with width based on initial aspect?

po-ro commented 5 years ago

indeed this is rather tricky, also did not find a solution yet. Having the gallery grow with an aspect ratio would do the trick for me. Any solution in this direction?