GBKS/Wookmark-jQuery — Issue #1: Doing more Justified distribution.. Like Fab.com
Author: cemkozinoglu
Created: 2012-01-25 08:25:07+00:00
State: open

I needed more Fab.com Feeds effect so I modified the code a bit, so the boxes are more justified effect rather than getting more "centered" effect..:

Modify:
===============
//var offset = Math.round((containerWidth - (columns*columnWidth-options.offset))/2);
var offset = Math.round((containerWidth - (columns*columnWidth-options.offset))/(columns-1));

And:
//left: (shortestIndex*columnWidth + offset )+'px'
left: (shortestIndex*columnWidth + (shortestIndex*offset) )+'px'