1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MG 1.1 Image Size = Screen Size

Discussion in 'Media Gallery Support' started by Nuno, Sep 25, 2015.

  1. Nuno

    Nuno Active Member

    Hello,

    I set my gallery images to a small W x L since my members abuse image posting in topics, but I would like to
    stretch the image when someone clicks in it ( in the gallery ) to a size bigger as the screen size.

    Can this be done?

    Thanks
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    In EXTRA.css add:

    Code:
    .mediaContainer .imageContainer
    {
        width: 100%;
    }
    That should sort it.
     
  3. Nuno

    Nuno Active Member

    Chris,

    This only stretch the image in the container, I would like to stretch the image when someone clicks the image and it's opened in the lightbox :)

    Thanks for you time!
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    That's likely more complicated but I'll check shortly as soon as I can.
     
    Nuno likes this.
  5. Chris D

    Chris D XenForo Developer Staff Member

    There doesn't really seem to be a way to do this. The lightbox just resizes the image how it sees fit and there isn't really a feasible alway to override this dynamically.
     
  6. Nuno

    Nuno Active Member

    Back to this ... is the lightbox something internal to xenforo or an open source script?
    I would like to dig a little more on this!

    Thanks
     

Share This Page