ademilter / bricklayer

Lightweight and independent Pinterest-like cascading grid layout library
http://bricklayer.js.org
Other
2.46k stars 121 forks source link

Problem in fitting items when the connection speed is insufficient! #30

Open OnrCan opened 7 years ago

OnrCan commented 7 years ago

Hi,

I use bricklayer in my final term project, but there is a distracting problem when the Internet speed is slow. Here're the photos. I hope you will get the problem from screenshots... :innocent:

brick-1 brick-3

f commented 7 years ago

Hmm, because Bricklayer doesn't know the height of the image which makes it harder to calculate where to put the brick. Will dig into it :)

Dzoge commented 7 years ago

What I did in this case is tapped on the load event of the images and then call redraw() method to reposition the content.

Thought it's not recommended to use this method, based on the docs, it does the trick.

fladipa commented 4 years ago

Hi, you can use window load handler instead of document ready.