When scaling browser viewport the LightBox image aspect ratio is not preserved.
What can we do to make this work?
Thanks for yr time.
1 Answer, 1 is accepted
answered on 15 Nov 2021, 10:20 AM
The Lightbox supports auto sizing functionality that will re-scale the loaded image upon resizing. You can enable it by setting the ClientSettings.ContentResizeMode of the control to three different values depending on your requirements:
Fit - Fits the image/iframe content to the available space but keeping the proportions at the same time
Fill - Stretches the image/iframe to fill the available space
None - If AutoResize = "true", RadLightBox will not resize the image if it is smaller than the available space yet it will make it fit proportionally if it is larger.