Project: SWT
Bug 125725 Mistake in FormLayout.layout(Composite, boolean)
Reported: 2006-01-30 12:41:13 | Status: resolved fixed

Found minor coding mistake in FormLayout.layout(Composite, boolean) method: int width = Math.max (0, rect.width - marginLeft - 2 * marginWidth - marginRight); int height = Math.max (0, rect.height - marginLeft - 2 * marginHeight - marginBottom); The height line subtracts marginLeft, but it should subtract marginTop.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/FormLayout.java