Bug 198356 Width of report item does not take effect in Layout [03]
Description: Width of report item does not take effect in Layout. Build number: 2.2.1.v20070731-0928 Steps to reproduce: 1. New a report with a label. 2. Add all borders for the label, set Width and Height both to 3 in. Expected result: Both width and height settings take effect. Actual result: Only height setting takes effect. Error log: N/A
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/figures/LabelFigure.java
* 
	 * @see org.eclipse.draw2d.Figure#getMinimumSize(int, int)
	 */
	public Dimension getMinimumSize(int wHint, int hHint) {
		if (DesignChoiceConstants.DISPLAY_NONE.equals(display)) {
			return ZERO_DIMENSION;
		}
		int rx = recommendSize != null ? recommendSize.width : 0;
		int ry = recommendSize != null ? recommendSize.height : 0;
		if (wHint == -1 && hHint == -1) {
			
			int maxWidth = calcMaxSegment();
			
			return new Dimension(Math.max(maxWidth, rx), Math.max(getInsets()
					.getHeight(), ry));
		}
		
		Dimension dim = super.getMinimumSize(-1, hHint);
		if (dim.width < wHint) {
			return new Dimension(Math.max(dim.width, rx), Math.max(dim.height,
					ry));
		}
		dim = super.getMinimumSize(wHint, hHint);
		return new Dimension(Math.max(dim.width, rx), Math.max(dim.height, ry));
	}
	private int calcMaxSegment() {
		String text = label.getText();
		char[] chars = text.toCharArray();
		int position = 0;
		int maxWidth = 0;