this.cols = Math.max( cols, 1 );
this.cols = this.maxCols > 0 ? Math.min( this.cols, this.maxCols ) : this.cols;
var totalBoxWidth = this.cols * boxWidth - this.padWidth;
this.cols = Math.max( cols, 1 );
this.cols = this.maxCols > 0 ? Math.min( this.cols, this.maxCols ) : this.cols;
var totalBoxWidth = this.cols * boxWidth - this.padWidth;