Project: SWT
Bug 11515 computeTrim and getClientArea are inconsistent in CTabFolder
Reported: 2002-03-17 23:32:46 | Status: resolved fixed

According to SWT documentation, given a desired client area, computeTrim should return a bounding rectangle required to produce that client area. Bounding rectangle height taken into account in CTabFolder.getClientArea (line 613) is greater one row of pixels than the one calculated in CTabFolder.computeTrim (line 348). This is inconsistent. It also affects the patch to fix 10025. The workaround is to manually correct the bounds returned by computeTrim.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java