react-image-gallery icon indicating copy to clipboard operation
react-image-gallery copied to clipboard

Set size of height based on width

Open gadzhimari opened this issue 8 years ago • 2 comments

Hi. I wanna say thank you for great library. I have one question. Is any possibilities to set height the same size as a width(for example 400x400 and etc.) I mean to do those as square. Not statically set size through the css. Maybe I should add own method as a props in original source code and listen handleResize method.

gadzhimari avatar Feb 10 '18 13:02 gadzhimari

Hmm, I'm not 100% sure what you mean. Do you have different image sizes and want to keep them all the same height as their width?

xiaolin avatar Feb 15 '18 03:02 xiaolin

No, I want to set all a wrapper of image set height as the same as width.

gadzhimari avatar Feb 15 '18 07:02 gadzhimari