+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / Image Gallery Lightbox Popup Size

Image Gallery Lightbox Popup Size

2 posts, 0 answered
  1. David Jones
    David Jones avatar
    3 posts
    Registered:
    03 Nov 2009
    28 Jan 2010
    Link to this post
    Hello. I have an image gallery using the lightbox feature. When you click on a thumbnail and the large image opens, the image is shown at original size and requires scrolling to view. Is there an option in the image gallery control to 'fit' image to screen? This would be nice for people who use various desktop resolutions. Or do we need to delete all of the images and resize them locally and re-upload them? Thanks!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Jan 2010
    Link to this post
    Hi David Jones,

    You have to modify the js of the lightbox library or use Latest Lightbox v2 with automatic resizing, auto resize lightbox. Of course resizing all images manually or programmatically( width and height are metadata so you can access the using GetMetaData of an IContent object, then set them using SetMetaData method) is also an option.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered