Support » Plugin: WP jQuery Lightbox » Image Not resized correctly with WPTouch

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ulfben

    (@ulfben)

    No idea. I can try and investigate sometime, but you’re likely to get faster help if you ask the WPTouch people what might be up.

    Your not zoomed in or anything in this screenshot?

    Has nothing to do with wptouch Plugin!
    Is the Display is less than 350px it will Not work corect

    In jquery.lighbox.js line 277 in the function resizeImageContainer()

    There is var widthNew = Math.max(350, imgWidth + (opts.borderSize * 2));

    but the max width of an iPhone is 320px so if changed to

    var widthNew = Math.max(320, imgWidth + (opts.borderSize * 2));

    Seems to work for me.

    Great plugin and nice code ulfben.

    First of all: thanks for the great plugin!

    I have the same problem but I think the correct value should be 300 px because of the 10 px padding here:

    #imageContainer {
        padding: 10px;
    }

    300 px for the outerImageContainer + 20 px padding (left and right) = 320 px (iPhone viewport).

    allm

    (@realblueorange)

    @ulfben:

    Are you going to change this in a next version of the plugin?

    Plugin Author ulfben

    (@ulfben)

    Fixed in 1.4.5.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image Not resized correctly with WPTouch’ is closed to new replies.