Project: SWT
Bug 96042 computeTrim() is not returning the correct value
Reported: 2005-05-19 18:58:22 | Status: resolved fixed

Snippet showing the problem (in 3.1M7): public static void main(String[] args) { Display d = new Display(); final Shell shell = new Shell(SWT.TOOL | SWT.ON_TOP); shell.setSize(100, 100); System.out.println(shell.computeTrim(0,0,0,0)); shell.open(); for (int i = 0; i < 5; i++) if (!d.readAndDispatch()) d.sleep(); shell.dispose(); } Clearly, the shell has a trim, but computeTrim() doesn't reflect that.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java