protected void closeLayout( )
	{
		//TODO support specified height/width/alignment
		if ( root != null )
		{
			root.setContentHeight( childHeight );
			IStyle areaStyle = root.getStyle( );
			int width = getCurrentIP( )
					+ getOffsetX( )
					+ getDimensionValue( areaStyle
							.getProperty( StyleConstants.STYLE_PADDING_RIGHT ) )
					+ getDimensionValue( areaStyle
							.getProperty( StyleConstants.STYLE_BORDER_RIGHT_WIDTH ) );
			root.setWidth( width );
			int height = 0;
			Iterator iter = root.getChildren( );
			while(iter.hasNext())
			{
				AbstractArea child = (AbstractArea)iter.next( );
				height = Math.max( height, child.getAllocatedHeight( ));
			}
			root.setContentHeight( height );
		}
		//FIXME verticalAlign may effect the root height.
		verticalAlign();
	}
protected void closeLayout( )
	{
	
		if ( root != null )
		{
			root.setContentHeight( childHeight );
			IStyle areaStyle = root.getStyle( );
			int width = getCurrentIP( )
					+ getOffsetX( )
					+ getDimensionValue( areaStyle
							.getProperty( StyleConstants.STYLE_PADDING_RIGHT ) )
					+ getDimensionValue( areaStyle
							.getProperty( StyleConstants.STYLE_BORDER_RIGHT_WIDTH ) );
			root.setWidth( width );
			int height = 0;
			Iterator iter = root.getChildren( );
			while(iter.hasNext())
			{
				AbstractArea child = (AbstractArea)iter.next( );
				height = Math.max( height, child.getAllocatedHeight( ));
			}
			root.setContentHeight( height );
		}
	
		verticalAlign();
	}
protected void closelayout( ) { if ( root != null ) { root.setcontentheight( childheight ); istyle areastyle = root.getstyle( ); int width = getcurrentip( ) + getoffsetx( ) + getdimensionvalue( areastyle .getproperty( styleconstants.style_padding_right ) ) + getdimensionvalue( areastyle .getproperty( styleconstants.style_border_right_width ) ); root.setwidth( width ); int height = 0; iterator iter = root.getchildren( ); while(iter.hasnext()) { abstractarea child = (abstractarea)iter.next( ); height = math.max( height, child.getallocatedheight( )); } root.setcontentheight( height ); } verticalalign(); }