Bug 197225 Only set master page width will not take effect when preview in PDF [1200]
Description: Only set master page width will not take effect when preview in PDF. Build number: 2.2.1.v20070719-0630 Steps to reproduce: 1. New a report with a label. 2. Switch to Master Page tab and select type as "Custom", set Width to 5 in. 3. Preview in PDF. Expected result: The master page width take effect. Actual result: The master page width will not take effect until Height is set. Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFPageLM.java
}
		if ( rootTop + rootBottom > pageHeight )
		{
			rootBottom = 0;
		}
		pageRoot.setWidth( pageWidth - rootLeft - rootRight );
		pageRoot.setHeight( pageHeight - rootTop - rootBottom );
		page.setRoot( pageRoot );
		/**
		 * set position and dimension for header
		 */
		int headerHeight = getDimensionValue( pageContent.getHeaderHeight( ),
				pageRoot.getHeight( ) );
		int headerWidth = pageRoot.getWidth( );
		headerHeight = Math.max( 0, headerHeight );
		headerHeight = Math.min( pageRoot.getHeight( ), headerHeight );
		ContainerArea header = new LogicContainerArea( report);
		header.setHeight( headerHeight );
		header.setWidth( headerWidth );
		header.setPosition( 0, 0 );
		pageRoot.addChild( header );
		page.setHeader( header );
		/**
		 * set position and dimension for footer
		 */
		int footerHeight = getDimensionValue( pageContent.getFooterHeight( ),
				pageRoot.getHeight( ) );
		int footerWidth = pageRoot.getWidth( );
		footerHeight = Math.max( 0, footerHeight );
		footerHeight = Math.min( pageRoot.getHeight( ) - headerHeight,