kombai / freewall

Freewall is a cross-browser and responsive jQuery plugin to help you create grid, image and masonry layouts for desktop, mobile, and tablet...
MIT License
1.85k stars 375 forks source link

Flex layout & overlapping bricks #190

Closed Daboloskov closed 8 years ago

Daboloskov commented 9 years ago

Hi,

The only "no bullshit" plugin so far. But after server upload I encounter some overlapping issues with the bricks. See: http://imgur.com/4wMTsNJ You can see it live: http://www.organse.com/lookbook

Any ideas on what happened?

Best regards, Dab

Daboloskov commented 9 years ago

Alright so I tried this function to load the picture before the script but it doesn't work either.

    var func = {
        preload: function() {
            var images = []
            for (var i = 1 ; i < 50 ; ++i) {
                images[i] = new Image();
                images[i].src = "<?= TEMPLATE_URL ?>img/lookbook/" + i + ".jpg";
                images[i].onload = function() {
                    window["console"] && console.log(this.src);
                }
            }
        }
    }
kombai commented 9 years ago

Hi, You must to let this function do same that:

func.preload();
piyushcrive commented 6 years ago

Hey, @Daboloskov Did you find a solution to this? I am facing the same issue. Can you please guide me here?