• Resolved jmont723

    (@jmont723)


    First of all, thank you for making this wonderful plugin. It’s simple, easy to use, and addresses basically every use case that I need for displaying images.

    I wanted to report one issue that I was having with the Single Thumbnail Gallery; specifically, this gallery type requires you to specify a static thumbnail size (in pixels) which does not appear to dynamically resize like most of the other album types do when the window size is adjusted, or even based on the device screen size. This frequently results in the gallery thumbnail “running off” the page if the container housing it is smaller than the fixed dimensions that are specified. It’s especially noticeable on mobile platforms such as phones and tablets, which tend to have lower resolutions. My blog isn’t publicly hosted yet, but I have a few example screenshots showing what’s happening:

    http://imgur.com/r896zDV (Desktop, full screen size. Slight runoff, but still mostly fits in the div container)
    http://imgur.com/U9S94nt (Desktop, with the window resized to half. The thumbnail very clearly runs off the page)
    http://imgur.com/WdCI6HR (Nexus 7 tablet; again, the thumbnail runs off the page)

    The workaround option right now would simply be to choose a very small static thumbnail size, but even this would have to be very, very small in order to properly fit within phone resolutions. I’ve tried some CSS magic to circumvent the issue, but nothing seems to address it properly.

    It would be much more robust to optionally be able to specify thumbnail height and width as percentages (instead of just raw pixel sizes) of the current container, and then also support dynamic resizing if the window size is adjusted by the user. This would also make mobile support for this gallery type much improved as well.

    Note that I am using the “full-width: block” position option for all of these examples. I am also using a very small line of custom CSS to center this gallery type, as I found that it consistently aligns to the left unless I include the following (assume gallery-626 is a specific Single-thumbnail gallery):

    #foogallery-gallery-626 {
    text-align:center;
    }

    Is there any simple fix for this sizing issue that you guys can think of? I appreciate the support and thank you again for the great plugin.

    https://wordpress.org/plugins/foogallery/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bradvin

    (@bradvin)

    Thanks for your detailed explanation and screenshot – we really appreciate these types of forum submissions.

    We will be looking into the responsiveness of the single thumb gallery today and will push a branch you can test.

    As soon as that is ready we will post here

    Thread Starter jmont723

    (@jmont723)

    Thanks so much! I appreciate the quick reply and look forward to seeing what you guys come up with.

    Plugin Author steveush

    (@steveush)

    Hi,

    Could you please try the latest develop branch of FooGallery available on GitHub using this download link. I have created some fixes which I think should resolve both your responsive issue as well as the alignment issue when using Position – Full Width (Block).

    Thanks

    Thread Starter jmont723

    (@jmont723)

    Damn, that was fast 🙂

    I just gave it a go and everything looks to be working perfectly now. The thumbnail now matches the size of the container div perfectly if it overflows and adjusts on changes to window size and orientation. I tested it on the following platforms and they all worked successfully:

    Chrome (Windows 7)
    Firefox (Windows 7)
    Opera (Windows 7)
    Internet Explorer (Windows 7)
    Nexus 7 Tablet
    Nexus 9 Tablet
    Nexus 5X Phone

    Additionally, the gallery is now centering correctly without the need for the additional CSS. Thanks!

    Sample screenshot of how things (correctly) look now after adjusting window size:
    http://imgur.com/xRqTI4D

    Thank you again so much for the quick response and for supporting this excellent plugin. I’m going to go ahead and mark this topic as resolved, but I’ll continue playing around with some new galleries over the course of the next week and let you know if I run into any issues.

    -jmont

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Single Thumbnail Gallery and Dynamic Sizing’ is closed to new replies.