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.
Thread Starter
YuMyo
(@nikho)
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 9 years, 5 months ago by
YuMyo.
Thread Starter
YuMyo
(@nikho)
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 9 years ago by
Azragh.
I released new version of Justified Gallery. Let’s update to v1.2.1.
This should solve your problems.
Best
Damian Góra