height -= this.marginTop + this.marginBottom;
height -= this.marginTop;
	protected void calculateContentArea( int x, int y, int width, int height ) {		//#debug		System.out.println("calculateContentArea(" + x + ", " + y + ", " + width + ", " + height + ")");				x += this.marginLeft;		width -= this.marginLeft + this.marginRight;		y += this.marginTop;		height -= this.marginTop + this.marginBottom;		//#if !polish.css.title-position || !tmp.usingTitle			int topHeight = this.titleHeight + this.subTitleHeight + this.infoHeight;		//#else			//# int topHeight = this.subTitleHeight + this.infoHeight;			if (this.paintTitleAtTop) {				topHeight += this.titleHeight;			} else {				height -= this.titleHeight;			}		//#endif		y += topHeight;		//#ifndef polish.skipTicker						int tickerHeight = 0;			if (this.ticker != null) {				tickerHeight = this.ticker.getItemHeight( width, width );			} 				height -= topHeight + tickerHeight;		//#else			height -= topHeight;			//#endif		//#if tmp.useScrollBar			if ( this.container != null ) {				this.scrollBar.scrollBarHeight = height;				//System.out.println("calculateContentArea for " + this + ": container.isInitialised=" + this.container.isInitialised );				int scrollBarWidth = this.scrollBar.getItemWidth(width, width);				int containerHeight = this.container.getItemHeight(width - scrollBarWidth, width - scrollBarWidth);				if (containerHeight > height) {					//System.out.println("calculateContentArea for" + this + ": scrollBar is required for containerHeight of " + containerHeight + ", availableHeight=" + height );										width -= scrollBarWidth;				} else {					//System.out.println("calculateContentArea for" + this + ": scrollBar is NOT required for containerHeight of " + containerHeight + ", availableHeight=" + height );										this.container.requestFullInit();				}			}		//#endif					// now set the content coordinates:			this.contentX = x;		//#ifndef polish.skipTicker						//#if tmp.paintTickerAtTop				y += tickerHeight;			//#elif polish.css.ticker-position && !polish.TickerPosition:defined				if (this.paintTickerAtTop) {					y += tickerHeight;				}			//#endif		//#endif		this.contentY = y;		this.contentWidth = width;		this.contentHeight = height;		//#debug		System.out.println("calculateContentArea: x=" + this.contentX + ", y=" + this.contentY + ", width=" + this.contentWidth + ", height=" + this.contentHeight);		if (this.container != null) {			this.container.setVerticalDimensions( y, y + height );		}	}