src/js/items/RowOrColumn.js
function() {
		var minItemWidth = this.layoutManager.config.dimensions ? (this.layoutManager.config.dimensions.minItemWidth || 0) : 0,
			sizeData = null,
			entriesOverMin = [],
			totalOverMin = 0,
			totalUnderMin = 0,
			remainingWidth = 0,
			itemSize = 0,
			contentItem = null,
			reducePercent,
			reducedWidth,
			allEntries = [],
			entry;

		if( this._isColumn || !minItemWidth || this.contentItems.length <= 1 ) {
			return;
		}

		sizeData = this._calculateAbsoluteSizes();

		/**
		 * Figure out how much we are under the min item size total and how much room we have to use.
		 */
		for( var i = 0; i < this.contentItems.length; i++ ) {

			contentItem = this.contentItems[ i ];
			itemSize = sizeData.itemSizes[ i ];

			if( itemSize < minItemWidth ) {
				totalUnderMin += minItemWidth - itemSize;
				entry = { width: minItemWidth };

			}
			else {
				totalOverMin += itemSize - minItemWidth;
				entry = { width: itemSize };
				entriesOverMin.push( entry );
			}

			allEntries.push( entry );
		}

		/**
		 * If there is nothing under min, or there is not enough over to make up the difference, do nothing.
		 */
		if( totalUnderMin === 0 || totalUnderMin > totalOverMin ) {
			return;
		}

		/**
		 * Evenly reduce all columns that are over the min item width to make up the difference.
		 */
		reducePercent = totalUnderMin / totalOverMin;
		remainingWidth = totalUnderMin;
		for( i = 0; i < entriesOverMin.length; i++ ) {
			entry = entriesOverMin[ i ];
			reducedWidth = Math.round( ( entry.width - minItemWidth ) * reducePercent );
			remainingWidth -= reducedWidth;
			entry.width -= reducedWidth;
		}

		/**
		 * Take anything remaining from the last item.
		 */
		if( remainingWidth !== 0 ) {
			allEntries[ allEntries.length - 1 ].width -= remainingWidth;
		}

		/**
		 * Set every items size relative to 100 relative to its size to total
		 */
		for( i = 0; i < this.contentItems.length; i++ ) {
			this.contentItems[ i ].config.width = (allEntries[ i ].width / sizeData.totalWidth) * 100;
		}
	}
function() {
		var minItemWidth = this.layoutManager.config.dimensions ? (this.layoutManager.config.dimensions.minItemWidth || 0) : 0,
			sizeData = null,
			entriesOverMin = [],
			totalOverMin = 0,
			totalUnderMin = 0,
			remainingWidth = 0,
			itemSize = 0,
			contentItem = null,
			reducePercent,
			reducedWidth,
			allEntries = [],
			entry;

		if( this._isColumn || !minItemWidth || this.contentItems.length <= 1 ) {
			return;
		}

		sizeData = this._calculateAbsoluteSizes();

		/**
		 * Figure out how much we are under the min item size total and how much room we have to use.
		 */
		for( var i = 0; i < this.contentItems.length; i++ ) {

			contentItem = this.contentItems[ i ];
			itemSize = sizeData.itemSizes[ i ];

			if( itemSize < minItemWidth ) {
				totalUnderMin += minItemWidth - itemSize;
				entry = { width: minItemWidth };

			}
			else {
				totalOverMin += itemSize - minItemWidth;
				entry = { width: itemSize };
				entriesOverMin.push( entry );
			}

			allEntries.push( entry );
		}

		/**
		 * If there is nothing under min, or there is not enough over to make up the difference, do nothing.
		 */
		if( totalUnderMin === 0 || totalUnderMin > totalOverMin ) {
			return;
		}

		/**
		 * Evenly reduce all columns that are over the min item width to make up the difference.
		 */
		reducePercent = totalUnderMin / totalOverMin;
		remainingWidth = totalUnderMin;
		for( i = 0; i < entriesOverMin.length; i++ ) {
			entry = entriesOverMin[ i ];
			reducedWidth = Math.round( ( entry.width - minItemWidth ) * reducePercent );
			remainingWidth -= reducedWidth;
			entry.width -= reducedWidth;
		}

		/**
		 * Take anything remaining from the last item.
		 */
		if( remainingWidth !== 0 ) {
			allEntries[ allEntries.length - 1 ].width -= remainingWidth;
		}

		/**
		 * Set every items size relative to 100 relative to its size to total
		 */
		for( i = 0; i < this.contentItems.length; i++ ) {
			this.contentItems[ i ].config.width = (allEntries[ i ].width / sizeData.totalWidth) * 100;
		}
	}
function ( ) { var minItemWidth = this . layoutManager . config . dimensions ? ( this . layoutManager . config . dimensions . minItemWidth || 0 ) : 0 , sizeData = null , entriesOverMin = [ ] , totalOverMin = 0 , totalUnderMin = 0 , remainingWidth = 0 , itemSize = 0 , contentItem = null , reducePercent , reducedWidth , allEntries = [ ] , entry ; if ( this . _isColumn || ! minItemWidth || this . contentItems . length <= 1 ) { return ; } sizeData = this . _calculateAbsoluteSizes ( ) ; /**
		 * Figure out how much we are under the min item size total and how much room we have to use.
		 */ for ( var i = 0 ; i < this . contentItems . length ; i ++ ) { contentItem = this . contentItems [ i ] ; itemSize = sizeData . itemSizes [ i ] ; if ( itemSize < minItemWidth ) { totalUnderMin += minItemWidth - itemSize ; entry = { width : minItemWidth } ; } else { totalOverMin += itemSize - minItemWidth ; entry = { width : itemSize } ; entriesOverMin . push ( entry ) ; } allEntries . push ( entry ) ; } /**
		 * If there is nothing under min, or there is not enough over to make up the difference, do nothing.
		 */ if ( totalUnderMin === 0 || totalUnderMin > totalOverMin ) { return ; } /**
		 * Evenly reduce all columns that are over the min item width to make up the difference.
		 */ reducePercent = totalUnderMin / totalOverMin ; remainingWidth = totalUnderMin ; for ( i = 0 ; i < entriesOverMin . length ; i ++ ) { entry = entriesOverMin [ i ] ; reducedWidth = Math . round ( ( entry . width - minItemWidth ) * reducePercent ) ; remainingWidth -= reducedWidth ; entry . width -= reducedWidth ; } /**
		 * Take anything remaining from the last item.
		 */ if ( remainingWidth !== 0 ) { allEntries [ allEntries . length - 1 ] . width -= remainingWidth ; } /**
		 * Set every items size relative to 100 relative to its size to total
		 */ for ( i = 0 ; i < this . contentItems . length ; i ++ ) { this . contentItems [ i ] . config . width = ( allEntries [ i ] . width / sizeData . totalWidth ) * 100 ; } }
Adjusts the column widths to respect the dimensions minItemWidth if set.
@returns {}
Adjusts the column widths to respect the dimensions minItemWidth if set .