Bug 106425 Percent value doesn't work properly in height property of image and chart items
Description: Percent value doesn't work properly in height property of image and chart items Steps to reproduce: 1.Insert a chart 2.Set it's width to 100% and height to 100% 3.In Chart Builder,modify some attributes and click OK 4.Insert a image 5.Set it's width to 100% Expected result: It work normal. Actual result: Chart item's width and height changed back to default values. Image shrink to a small size in layout viewer.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/ImageEditPart.java
public void elementChanged( DesignElementHandle arg0, NotificationEvent arg1 )
	{
		markDirty( true );
		this.refreshVisuals( );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.editors.schematic.editparts.ReportElementEditPart#refreshFigure()
	 */
	public void refreshFigure( )
	{
		refreshBorder( (DesignElementHandle) getModel( ), new LineBorder( ) );
		Insets pist = getImageAdapter( ).getPadding( getFigure( ).getInsets( ) );
		( (LineBorder) ( getFigure( ).getBorder( ) ) ).setPaddingInsets( pist );
		Image image = null;
		try
		{
			image = getImageAdapter( ).getImage( );
		}
		catch ( SWTException e )
		{
			
		}
		( (ImageFigure) this.getFigure( ) ).setStretched( image != null );
		if ( image == null )
		{
			image = ReportPlatformUIImages.getImage( IReportGraphicConstants.ICON_MISSING_IMG );
		}
		( (ImageFigure) this.getFigure( ) ).setImage( image );