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/presentation/LocalizedContentVisitor.java
IReportItemPresentation itemPresentation = ExtensionManager
				.getInstance( ).createPresentationItem( tagName );
		if ( itemPresentation != null )
		{
			itemPresentation.setModelObject( handle );
			itemPresentation.setScriptContext( context.getReportContext( ) );
			IBaseQueryDefinition[] queries = design.getQueries( );
			if ( queries == null )
			{
				if ( design.getQuery( ) != null )
				{
					queries = new IBaseQueryDefinition[]{design.getQuery( )};
				}
			}
			itemPresentation.setReportQueries( queries );
			itemPresentation.setDynamicStyle( content.getComputedStyle( ) );
			Map appContext = context.getAppContext( );
			int resolution = 96;
			if ( isForPrinting( ) )
			{
				resolution = 192;
				if ( appContext != null )
				{
					Object tmp = appContext
							.get( EngineConstants.APPCONTEXT_CHART_PRINT_RESOLUTION );
					if ( tmp != null && tmp instanceof Number )
					{
						resolution = ( (Number) tmp ).intValue( );
						if ( resolution < 96 )