root.setContentHeight( contentDimension.getHeight( ) );
root.setContentHeight( Math.min( context.getMaxHeight( ),contentDimension.getHeight( )) );
	protected void init( )	{		assert ( content instanceof IImageContent );		image = (IImageContent) content;		maxWidth = parent.getCurrentMaxContentWidth( );				Dimension contentDimension = getSpecifiedDimension( image );		root = (ContainerArea) createInlineContainer( image, true,				true );		validateBoxProperty( root.getStyle( ), maxWidth, context.getMaxHeight( ) );				//set max content width		root.setAllocatedWidth( maxWidth );		int maxContentWidth = root.getContentWidth( );		if(contentDimension.getWidth() > maxContentWidth)		{			contentDimension.setDimension(maxContentWidth, (int)(maxContentWidth/contentDimension.getRatio()));		}				ImageArea imageArea = (ImageArea)AreaFactory.createImageArea( image );		imageArea.setWidth(contentDimension.getWidth());		imageArea.setHeight(contentDimension.getHeight());		root.addChild(imageArea);				imageArea.setPosition( root.getContentX( ), root.getContentY( ) );		root.setContentWidth( contentDimension.getWidth( ) );		root.setContentHeight( contentDimension.getHeight( ) );	}