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
}
			}
		};
		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) {
		Dimension dim = super.getPreferredSize(wHint, hHint);
		int rx = recommendSize != null ? recommendSize.width : 0;
		int ry = recommendSize != null ? recommendSize.height : 0;
		if (DesignChoiceConstants.DISPLAY_BLOCK.equals(display)) {
			return new Dimension(dim.width, Math.max(dim.height, ry));
		}
		if (DesignChoiceConstants.DISPLAY_INLINE.equals(display)) {
			return new Dimension(Math.max(dim.width, rx), Math.max(dim.height,
					ry));
		}
		return dim;
	}
	/*
	 * (non-Javadoc)