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

rendered cell width #115

Closed bknill closed 10 years ago

bknill commented 10 years ago

Hi, is it possible to access the width of a cell after it has been rendered?

I'm trying to make a header div for a cell, that has a collection of child divs, and the header needs to be full width of the cell.

I can't seem to find the rendered width anywhere. Any ideas?

kombai commented 10 years ago

Hi. you can try with onBlockFinish to access each cell after it rendered.

onBlockFinish: function(block ,setting) {
   console.log(this); 
   if($(this).hasClass("abc")) {
   }
}
bknill commented 10 years ago

Yep that worked thanks.