Project: SWT
Bug 128476 Regression: Tree with columns does not reset horizontal scroll bar
Reported: 2006-02-17 16:24:27 | Status: resolved fixed

SWT-win32, v3224 When the width of a tree column is first increased, then decreased again (either programmatically or by dragging), the horizontal scroll bar of the tree will not be adjusted to reflect the change. This is a recent regression. --- import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class TreeColumnScrollBarTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Tree tree = new Tree(shell, SWT.NONE); tree.setHeaderVisible(true); TreeColumn col = new TreeColumn(tree, SWT.LEFT); col.setText("Column"); col.setWidth(1000); col.setWidth(100); shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }

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