Bug 414088 Error in code of PageArea.createRoot
This seems to me like a copy&paste error in the code: protected void createRoot( ) { ... pageRoot.setBoxStyle( boxStyle ); rootLeft = getDimensionValue( pageContent, pageContent.getMarginLeft( ), pageContentWidth ); rootTop = getDimensionValue( pageContent, pageContent.getMarginTop( ), pageContentWidth ); rootLeft = Math.max( 0, rootLeft ); ... Consider the line "rootTop = ...". Shouldn't this read rootTop = getDimensionValue( pageContent, pageContent.getMarginTop( ), pageContentHeight ); instead?
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/PageArea.java
}
	public void initialize( ) throws BirtException
	{
		createRoot( );
		Color backgroundColor = PropertyUtil.getColor( pageContent.getComputedStyle( )
				.getProperty( StyleConstants.STYLE_BACKGROUND_COLOR ) );
		ReportDesignHandle designHandle = pageContent.getReportContent( )
				.getDesign( ).getReportDesign( );
		IStyle style = pageContent.getStyle( );
		
		String imageUrl = EmitterUtil.getBackgroundImageUrl( style,
				designHandle, pageContent.getReportContent( )
						.getReportContext( ) == null ? null : pageContent
						.getReportContent( ).getReportContext( )
						.getAppContext( ) );
		if ( backgroundColor != null || imageUrl != null )
		{
			boxStyle = new BoxStyle( );
			boxStyle.setBackgroundColor( backgroundColor );
			if ( imageUrl != null )
			{
				boxStyle.setBackgroundImage( createBackgroundImage( imageUrl ) );
			}
		}
		context.setMaxHeight( root.getHeight( ) );
		context.setMaxWidth( root.getWidth( ) );
		context.setMaxBP( root.getHeight( ) );
		layoutHeader( );
		layoutFooter( );
		updateBodySize( );