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
for (int i = 0; i < chars.length; i++) {
			if (canBreakAfter(chars[i])) {
				int tempMaxWidth;
				String st = text.substring(position, i + 1);
				tempMaxWidth = FigureUtilities.getStringExtents(st, getFont()).width;
				if (tempMaxWidth > maxWidth) {
					maxWidth = tempMaxWidth;
				}
				position = i;
			}
		}
		String st = text.substring(position, chars.length);
		int tempMaxWidth = FigureUtilities.getStringExtents(st, getFont()).width;
		if (tempMaxWidth > maxWidth) {
			maxWidth = tempMaxWidth;
		}
		return maxWidth;
	}
	static final BreakIterator LINE_BREAK = BreakIterator.getLineInstance();
	static boolean canBreakAfter(char c) {
		boolean result = Character.isWhitespace(c) || c == '-';
		if (!result && (c < 'a' || c > 'z')) {
			
			
			
			LINE_BREAK.setText(c + "a"); 
			result = LINE_BREAK.isBoundary(1);
		}
		return result;
	}