ademilter/bricklayer

Problem in fitting items when the connection speed is insufficient!

Opened this issue ยท 3 comments

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... ๐Ÿ˜‡

brick-1
brick-3

f commented

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

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.

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