• Hi,

    There is a bug in image lightboxes in the current version of KingComposer: After clicking an image to show the lightbox, if you rotate the (mobile) device, the lightbox’s alignment gets shifted in an unwanted way, and only closing the lightbox or switching to the next image fixes this.

    This happens on Android (Chrome, Firefox) and also iOS (Safari, maybe Chrome). This happens regardless of the selected theme, as I’ve used themes from www.ads-software.com, WordPress default themes, and themes made by myself. The same issue occurrs with single images and image carousels as long as they have lightbox enabled. I have not made any CSS/JS adjustments that might cause this.

    Screenshots here:

    Image carousel:
    When opening the lightbox (normal): https://i.imgur.com/qhFiFLY.jpg
    After rotating the devide (problem): https://i.imgur.com/Smchx4R.jpg
    Rotating the device back (problem): https://i.imgur.com/OQVno7O.jpg

    Single image:
    When opening the lightbox (normal): https://i.imgur.com/nFySjyP.jpg
    After rotating the device (problem): https://i.imgur.com/6kj0wnn.jpg

    You can most likely fix this by adding a functionality to your lightbox JavaScript that checks for device orientation changes and updates the alignment similarly to what opening the lightbox does.

    Hope you are able to get this fixed in a new update!

  • The topic ‘Image Lightbox Issue (while changing device orientation)’ is closed to new replies.