Bug 156157 data item width change cannot be seen in layout
steps to reproduce: - create a report - add a data item - bring up properties - set its width to 1cm or 50%, etc - set its background color to blue - preview in html expected behavior: - data item width change can be seen in both layout and preview actual behavior: - it cannot be seen in layout
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/LabelEditPart.java
( (LabelFigure) getFigure( ) ).setRecommendSize( getLabelAdapter( ).getSize( ) );
		( (AbstractGraphicalEditPart) getParent( ) ).setLayoutConstraint( this,
				getFigure( ),
				getConstraint( ) );
		( (LabelFigure) getFigure( ) ).setForegroundColor( ColorManager.getColor( getForegroundColor( (ReportItemHandle) getModel( ) ) ) );
		refreshBorder( (DesignElementHandle) getModel( ), new LineBorder( ) );
		Insets pist = getLabelAdapter( ).getPadding( getFigure( ).getInsets( ) );
		( (LineBorder) ( getFigure( ).getBorder( ) ) ).setPaddingInsets( pist );
		if ( !hasText( ) )
			( (LabelFigure) getFigure( ) ).setForegroundColor( ReportColorConstants.ShadowLineColor );
		else
			( (LabelFigure) getFigure( ) ).setForegroundColor( ColorManager.getColor( getForegroundColor( (ReportItemHandle) getModel( ) ) ) );
		refreshBackground( (DesignElementHandle) getModel( ) );
		refreshMargin( );
	}
	/**
	 * Returns if the model element has explicit text set.
	 * 
	 * @return
	 */
	protected boolean hasText( )
	{
		if ( StringUtil.isBlank( ( (LabelHandle) getModel( ) ).getDisplayText( ) ) )
		{
			return false;
		}
		return true;
	}
	/**
	 * Get the text shown on label.