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.68k stars 299 forks source link

'jg.complete' should be fired after setGalleryFinalHeight #272

Closed kaljak closed 4 years ago

kaljak commented 6 years ago

'jg.complete' should be fired when everything is set up (https://github.com/miromannino/Justified-Gallery/blob/2cfe37a7c6b5adb59e43b809b0c519007fed779b/src/js/justifiedGallery.js#L770). Currently it is fired before 'jg.complete', so the callback can't rely on the container size of the justified gallery.