Bug 151185 Chart position wrong at PDF
- Create a 1x1 table. - Put a chart in the table - Position of chart is vertical=middle, textaligment=center, style=middle (The Chart is in the middle of the table-cell) - Use reportengine to create html -> All works fine - Use reportengine to create pdf -> The chart is left (not in the middle!)
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTableLM.java
for ( int i = 0; i < changed.size( ); i++ )
			{
				CellArea cell = (CellArea) changed.get( i );
				cell.setHeight( cell.getHeight( ) + bottomMaxBorder );
			}
			
			if ( lastRowArea != null )
			{
				lastRowArea.setHeight( lastRowArea.getHeight( )
						+ bottomMaxBorder );
			}
		}
		
		root.setHeight( getCurrentBP( ) + getOffsetY( ) + bottomMaxBorder );
		
		
	}
	private int resolveBottomBorder( CellArea cell )
	{
		IStyle tableStyle = tableContent.getComputedStyle( );
		IStyle rowStyle = ( lastRow == null ? null : lastRowArea.getContent( )
				.getComputedStyle( ) );
		IStyle columnStyle = getColumnStyle( cell.getColumnID( ) );
		IStyle cellContentStyle = cell.getContent( ).getComputedStyle( );
		IStyle cellAreaStyle = cell.getStyle( );
		bcr.resolveTableBottomBorder( tableStyle, rowStyle, columnStyle,
				cellContentStyle, cellAreaStyle );
		int borderWidth = PropertyUtil.getDimensionValue( cellAreaStyle
				.getProperty( StyleConstants.STYLE_BORDER_BOTTOM_WIDTH ) );