Bug 142490 StyledText embedded controls can appear incorrectly
3.2RC4 In snippet 217 change the Shell's size from 400x400 to 300x300, and note that the embedded Controls initially display at 0,0 in addition to their correct positions within the document.
examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet217.java
static StyledText styledText;
	static String text = 
		"This snippet shows how to embed widgets in a StyledText.\n"+
		"Here is one: \uFFFC, and here is another: \uFFFC.";
	static int MARGIN = 5;
	
	static void addControl(Control control, int offset) {
		StyleRange style = new StyleRange ();
		style.start = offset;
		style.length = 1;
		style.data = control;
		control.pack();
		Rectangle rect = control.getBounds();
		int ascent = 2*rect.height/3;
		int descent = rect.height - ascent;
		style.metrics = new GlyphMetrics(ascent + MARGIN, descent + MARGIN, rect.width + 2*MARGIN);
		styledText.setStyleRange(style);