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/figures/LabelFigure.java
}
		};
		label.setLayoutManager(new ParagraphTextLayout(label,
				ParagraphTextLayout.WORD_WRAP_SOFT));
		flowPage = new FlowPage();
		flowPage.add(label);
		setLayoutManager(new StackLayout());
		add(flowPage);
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.draw2d.IFigure#getPreferredSize(int, int)
	 */
	public Dimension getPreferredSize(int wHint, int hHint) {
		
		
		int rx = recommendSize != null ? recommendSize.width : 0;
		int ry = recommendSize != null ? recommendSize.height : 0;
		Dimension dim = super.getPreferredSize(rx == 0? wHint:rx, hHint);
		
		 
		
		return new Dimension(Math.max(dim.width, rx), Math.max(dim.height,
					ry));
		
		
	}
	/*
	 * (non-Javadoc)