WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Lightbox Plus] Browser Resize & Mobile orientation change

[Plugin: Lightbox Plus] Browser Resize & Mobile orientation change

  • janubande007
    Member

    @janubande007

    Hello,

    I’m wondering why the lightbox does not auto-change its size when the browser is resized or on a mobile phone the orientation changes (portrait to landscape & vice versa).

    PS…if the slideshow is playing, the next picture (not current one) to be loaded does resize appropriately, however, I may not always want to enable autoplay or have a slide show play.

    Can this be fixed?

    Thanks.

    http://wordpress.org/extend/plugins/lightbox-plus/

Viewing 1 replies (of 1 total)
  • eli0086
    Member

    @eli0086

    @janubande007:
    I don’t know if you were able to find a better solution yet, but I added to the css (I’m using the “shadowed” version).
    Go into colorbox.css and add a conditional statement for your differing screen sizes for the content being loaded.
    See the following:

    @media screen and (max-width: 400px) {

    #cboxLoadedContent {
    max-width:400px!important;}

    }

    It doesn’t allow it to go full screen or anything, but it helps the photo from being so huge in mobile window. It’s a start until a better solution is found. Hope it at least helps a little.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Lightbox Plus] Browser Resize & Mobile orientation change’ is closed to new replies.