• Hi!

    I would like to adjust the code to make the popout lightbox fill more of the iphone 6 screen. Right now the default is a very small video player.

    How can I increase the size of the lightbox on mobile??

    Thank you!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi try the following tweak. This was posted by someone in the forum.

    Changed the settings in js/jquery.prettyPhoto.js inside the free plugin. Changed the following value from 200 to 40 as per the example below.

    if((pp_containerWidth > windowWidth)){
    	imageWidth = (windowWidth - 40);
    	imageHeight = (height/width) * imageWidth;
    }else if((pp_containerHeight > windowHeight)){
    	imageHeight = (windowHeight - 40);
    	imageWidth = (width/height) * imageHeight;
    }else{
    	fitting = true;
    };
    chrislenoski

    (@chrislenoski)

    I tried this but the video is too big on iPhone 5, is there an in between setting?

    with default numbers is very tiny on the phone and with the 40 it’s way too big.

    Thanks.

    Plugin Support mbrsolution

    (@mbrsolution)

    What if you change the number to 20 or 30?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Increase lightbox size on mobile’ is closed to new replies.