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

Detect gaps #88

Closed drhanlau closed 10 years ago

drhanlau commented 10 years ago

Hi Kombai,

First of all, thanks for all your effort and timely reply, I really appreciate it.

http://www.johorads.com/adsindex.aspx

I am running the code in above url, and I have set fixSize to 1, is there anyway to detect the gaps, (yellow blocks in the screenshot)? Or can you give me some clue how to implement it?

image

Many thanks.

kombai commented 10 years ago

Hello, You can use onGapFound in the setting.


wall.reset({

 onGapFound:function(gap, setting) {

 }
});
drhanlau commented 10 years ago

Thanks very much, now it works :)