Support » Plugin: Justified Gallery » Last row height

  • Resolved yumyo

    (@nikho)


    Hi, thank you for this plugin.
    I’ve noticed that sometimes the last row bring a wrong height. The problem get fixed as soon as the user resize the browser window.
    This issue could have been by version 3.6.3 of the justified gallery script.
    I’ve tried to upgrade it manually, but it seems there are some syntax changes so it doesn’t work out-of-the-box. Any planned update on your side or alternative suggestions to mitigate or solve the issue?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Damian Gora

    (@damian-gora)

    Hi Nikho,

    The plugin uses gently modified justified gallery by miro v3.6.2. I plan to merge my modified script with the latest version 3.6.3 in the next plugin release.

    See the changelog of the version 3.6.3 – https://github.com/miromannino/Justified-Gallery#363
    There is no note similar to “fixed bug for last row height”.

    To get around the problem you can call $( window ).trigger( 'resize' ); after gallery is loaded.

    Hi Damian,

    thanks for the reply.

    I’ve tried to use the jg.complete event to fire the resize but with no luck so far. Any chance you could provide a sample snippet?

    • This reply was modified 3 years, 3 months ago by yumyo.

    btw, triggering the resize event from the Chrome Console does nothing. Just a real resize, even of one pixel, does.

    I just stumbled over this problem too. I recognized that you don’t have to resize the entire browser – a resize of the gallery’s container works too.

    I came up with the solution to set the gallery’s width to 101%, wait until the DOM’s ready, and then switch it back to 100.

    .justified-gallery {
    	width: 101% !important;
    }
    .justified-gallery.loaded{
    	width: 100% !important;
    }
    
    • This reply was modified 2 years, 10 months ago by Azragh.
    Plugin Author Damian Gora

    (@damian-gora)

    I released new version of Justified Gallery. Let’s update to v1.2.1.
    This should solve your problems.

    Best
    Damian Góra

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Last row height’ is closed to new replies.