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
}
		}
		iter = dropList.iterator();
		while(iter.hasNext())
		{
			DropCellInfo dropCell = (DropCellInfo) iter.next( );
			int left = dropCell.leftHeight;
			dropCell.leftHeight -= maxHeight;
			if(dropCell.leftHeight < 0)
			{
				dropCell.cell.setHeight(dropCell.cell.getHeight( ) + maxHeight - left);
				dropCell.leftHeight = 0;
			}
				
		}
		if(maxHeight>0)
		{
			if(lastRowArea!=null)
			{
				lastRowArea.setHeight( lastRowArea.getHeight( ) + maxHeight );
				Iterator rowIter = lastRowArea.getChildren( );
				while(rowIter.hasNext( ))
				{
					CellArea cell = (CellArea)rowIter.next( );
					if(cell.getRowSpan() == 1)
						cell.setHeight( cell.getHeight( ) + maxHeight );
				}
			}
			Iterator removedIter = removedList.iterator( );
			while(removedIter.hasNext( ))