sapegin/jquery.mosaicflow

Initializing with no columns

Closed this issue · 6 comments

No columns are initialised on page load, and are only created when window resize event is triggered, producing a single column initially. Any ideas?

Thanks

Could you share a test case on jsfiddle.net?

Having a hard time reproducing this in jsfiddle as the page is large and the section in question is hidden until a javscript event fires, which is likely the problem. At what point do the columns get injected?

Could you try latest (yesterday) version? It (latest version) should inject columns onload.

In your case (when section is hidden) you can initialize Mosaic flow manually after displaying hidden section.

Calling mosaicflow() in the console when the page is entirely loaded doesn't inject any columns either. In this case only resizing the window seems to do that. Using the newest version. Sorry I can't be of more help.

Thanks.

Page loaded or section visible? It’s strange, but I can’t do anything without looking at your code. You can send it to artem@sapegin.ru if creating a fiddle is a problem.

I have a feeling if I can reproduce it in a fiddle I'll know how to get it to work. Until then, thanks for making this.