src/js/items/RowOrColumn.js
function() {
		var i,
			totalSplitterSize = (this.contentItems.length - 1) * this._splitterSize,
  		headerSize = this.layoutManager.config.dimensions.headerHeight,
			totalWidth = this.element.width(),
			totalHeight = this.element.height(),
			totalAssigned = 0,
			additionalPixel,
			itemSize,
			itemSizes = [];

		if( this._isColumn ) {
			totalHeight -= totalSplitterSize;
		} else {
			totalWidth -= totalSplitterSize;
		}
		for( i = 0; i < this.contentItems.length; i++ ) {
			if( this._isDocked( i ) )
				if( this._isColumn ) {
					totalHeight -= headerSize - this._splitterSize;
				} else {
					totalWidth -= headerSize - this._splitterSize;
				}
		}

		for( i = 0; i < this.contentItems.length; i++ ) {
			if( this._isColumn ) {
				itemSize = Math.floor( totalHeight * ( this.contentItems[ i ].config.height / 100 ) );
			} else {
				itemSize = Math.floor( totalWidth * (this.contentItems[ i ].config.width / 100) );
			}
			if( this._isDocked( i ) )
				itemSize = headerSize;

			totalAssigned += itemSize;
			itemSizes.push( itemSize );
		}

		additionalPixel = Math.floor( (this._isColumn ? totalHeight : totalWidth) - totalAssigned );

		return {
			itemSizes: itemSizes,
			additionalPixel: additionalPixel,
			totalWidth: totalWidth,
			totalHeight: totalHeight
		};
	}
function() {
		var i,
			totalSplitterSize = (this.contentItems.length - 1) * this._splitterSize,
  		headerSize = this.layoutManager.config.dimensions.headerHeight,
			totalWidth = this.element.width(),
			totalHeight = this.element.height(),
			totalAssigned = 0,
			additionalPixel,
			itemSize,
			itemSizes = [];

		if( this._isColumn ) {
			totalHeight -= totalSplitterSize;
		} else {
			totalWidth -= totalSplitterSize;
		}
		for( i = 0; i < this.contentItems.length; i++ ) {
			if( this._isDocked( i ) )
				if( this._isColumn ) {
					totalHeight -= headerSize - this._splitterSize;
				} else {
					totalWidth -= headerSize - this._splitterSize;
				}
		}

		for( i = 0; i < this.contentItems.length; i++ ) {
			if( this._isColumn ) {
				itemSize = Math.floor( totalHeight * ( this.contentItems[ i ].config.height / 100 ) );
			} else {
				itemSize = Math.floor( totalWidth * (this.contentItems[ i ].config.width / 100) );
			}
			if( this._isDocked( i ) )
				itemSize = headerSize;

			totalAssigned += itemSize;
			itemSizes.push( itemSize );
		}

		additionalPixel = Math.floor( (this._isColumn ? totalHeight : totalWidth) - totalAssigned );

		return {
			itemSizes: itemSizes,
			additionalPixel: additionalPixel,
			totalWidth: totalWidth,
			totalHeight: totalHeight
		};
	}
function ( ) { var i , totalSplitterSize = ( this . contentItems . length - 1 ) * this . _splitterSize , headerSize = this . layoutManager . config . dimensions . headerHeight , totalWidth = this . element . width ( ) , totalHeight = this . element . height ( ) , totalAssigned = 0 , additionalPixel , itemSize , itemSizes = [ ] ; if ( this . _isColumn ) { totalHeight -= totalSplitterSize ; } else { totalWidth -= totalSplitterSize ; } for ( i = 0 ; i < this . contentItems . length ; i ++ ) { if ( this . _isDocked ( i ) ) if ( this . _isColumn ) { totalHeight -= headerSize - this . _splitterSize ; } else { totalWidth -= headerSize - this . _splitterSize ; } } for ( i = 0 ; i < this . contentItems . length ; i ++ ) { if ( this . _isColumn ) { itemSize = Math . floor ( totalHeight * ( this . contentItems [ i ] . config . height / 100 ) ) ; } else { itemSize = Math . floor ( totalWidth * ( this . contentItems [ i ] . config . width / 100 ) ) ; } if ( this . _isDocked ( i ) ) itemSize = headerSize ; totalAssigned += itemSize ; itemSizes . push ( itemSize ) ; } additionalPixel = Math . floor ( ( this . _isColumn ? totalHeight : totalWidth ) - totalAssigned ) ; return { itemSizes : itemSizes , additionalPixel : additionalPixel , totalWidth : totalWidth , totalHeight : totalHeight } ; }
Calculates the absolute sizes of all of the children of this Item.
@returns {object} - Set with absolute sizes and additional pixels.
Calculates the absolute sizes of all of the children of this Item .