Project: SWT
Bug 116892 Scroll clipped Tree/Table causes pixel corruption (drawing problem)
Reported: 2005-11-17 11:17:41 | Status: resolved fixed

I20051116-1332 Obligatory Simple Guy. Will attach a screencap showing the bug in the wild. import org.eclipse.swt.SWT; import org.eclipse.swt.custom.ScrolledComposite; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.TreeItem; public class ScrolledWithinScrolled { /** * @param args */ public static void main(String[] args) { Shell shell = new Shell(); shell.setSize(100,100); shell.setLayout(new FillLayout()); ScrolledComposite composite = new ScrolledComposite(shell, SWT.V_SCROLL); composite.setSize(100, 100); Tree tree = new Tree(composite, SWT.V_SCROLL); tree.setSize(100,100); for (int i = 0 ; i < 20; i++) { TreeItem item = new TreeItem(tree, SWT.NONE); item.setText(i + ""); for (int j = 0; j < 20; j++) { TreeItem item2 = new TreeItem(item, SWT.NONE); item.setText(i + "-" + j); } } shell.open(); Display display = shell.getDisplay(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } } }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scrollable.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Table.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Tree.java