miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.69k stars 299 forks source link

Programmaticaly change lastRow before 'norewind #170

Open ghost opened 8 years ago

ghost commented 8 years ago

Hello, thanks for this great plugin, i'm already using it very successfully. I would like to know if it is possible to change the lastRow option prior 'norewind'. I've got an infinite scroll, and I would like to hide the last row except when all results are loaded(in this case I want lastRow 'nojustify'). I've done this already, but with reinitializing the whole table, and that causes a nasty jump , especially on mobile. Do you have an idea on how do this ?

miromannino commented 8 years ago

You can attach that in the event jg.complete as described in http://miromannino.github.io/Justified-Gallery/options-and-events/

Have you tried that?