src/lib/demo.js
function() {
    return Math.max(MIN_COLUMN_COUNT, Math.floor((document.body.offsetWidth + GAP_WIDTH) / (COLUMN_WIDTH + GAP_WIDTH)));
  }
function() {
    return Math.max(MIN_COLUMN_COUNT, Math.floor((document.body.offsetWidth + GAP_WIDTH) / (COLUMN_WIDTH + GAP_WIDTH)));
  }
function ( ) { return Math . max ( MIN_COLUMN_COUNT , Math . floor ( ( document . body . offsetWidth + GAP_WIDTH ) / ( COLUMN_WIDTH + GAP_WIDTH ) ) ) ; }
Calculate column count from current page width.
Calculate column count from current page width .