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
{
					tableWidth = parentMaxWidth;
				}
			}
		}
		else
		{
			if ( !isInline )
			{
				tableWidth = Math.min( tableWidth, avaWidth );
			}
			else
			{
				tableWidth = Math.min( tableWidth, parentMaxWidth );
			}
		}
		IStyle style = root.getStyle( );
		int marginWidth = PropertyUtil.getDimensionValue( style
				.getProperty( StyleConstants.STYLE_MARGIN_LEFT ) )
				+ PropertyUtil.getDimensionValue( style
						.getProperty( StyleConstants.STYLE_MARGIN_RIGHT ) );
		
		if ( marginWidth > tableWidth )
		{
			style.setProperty( StyleConstants.STYLE_MARGIN_LEFT,
					IStyle.NUMBER_0 );
			style.setProperty( StyleConstants.STYLE_MARGIN_RIGHT,
					IStyle.NUMBER_0 );
			marginWidth = 0;
		}