Bug 18733 ControlExample: List widget not being resized properly
Build F1 (and F2 too) Steps: 1) Start ControlExample 2) Choose the "List" tab 3) Click on "Set Font" and choose a smaller font (manually type in a size if necessary -- you need to do this to get anything smaller than 8 pt in Win32) 4) Click on "Preferred" radio button, even though it's already selected 5) Uncheck "SWT.H_SCROLL" 6) Notice that the List widget gets bigger 7) Check "SWT.H_SCROLL" 8) Notice that the List widget gets even bigger
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
} else {
				gridData = new GridData ();
				gridData.widthHint = size;
				gridData.heightHint = size;
			}
			controls [i].setLayoutData (gridData);
		}
		/*
		 * Force the entire widget tree to layout,
		 * even when the child sizes may not have
		 * changed.
		 */
		int seenCount = 0;
		Composite [] seen = new Composite [4];
		for (int i=0; i<controls.length; i++) {
			Control control = controls [i];
			while (control != exampleGroup) {
				Composite parent = control.getParent ();
				int index = 0;
				while (index < seenCount) {
					if (seen [index] == parent) break;
					index++;
				}
				if (index == seenCount) parent.layout ();
				if (seenCount == seen.length) {
					Composite [] newSeen = new Composite [seen.length + 4];
					System.arraycopy (seen, 0, newSeen, 0, seen.length);
					seen = newSeen;
				}
				seen [seenCount++] = parent;