zachdrago
7/20/2016 - 7:52 PM

NOOSA 6 columns

NOOSA 6 columns

Callbacks.prototype.onBeforeRenderIsotope = function(containerWidth, maxTileWidth, margin, numColumns, currentTileWidth, tile) {
    var $tile = $(tile);
    var columns = 2;
	if (containerWidth >= 900) {
        columns = 6;
    }
    window.displayColumns = columns;
    return {
        tileWidth: Math.floor(((containerWidth - margin) / columns) - margin),
        numColumns: columns
    };
};