Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2006-08-03 15:17:42 +0000
committerSteve Northover2006-08-03 15:17:42 +0000
commitb2e9192c13cbd34fda89e0c79dff68de6b4e247e (patch)
treece1fc9857c5eecfb9bebd80429644100949ca9a1 /bundles
parent2b80a146a94b1cb9f46070133b109e63b39c6545 (diff)
downloadeclipse.platform.swt-b2e9192c13cbd34fda89e0c79dff68de6b4e247e.tar.gz
eclipse.platform.swt-b2e9192c13cbd34fda89e0c79dff68de6b4e247e.tar.xz
eclipse.platform.swt-b2e9192c13cbd34fda89e0c79dff68de6b4e247e.zip
151136 - Tree with TreeColumn loops forever if setWidth not called
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index 178b17d0c8..4d7709d5b2 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -2190,6 +2190,7 @@ void destroyItem (TreeColumn column) {
}
setScrollWidth ();
updateImageList ();
+ updateScrollBar ();
if (columnCount != 0) {
int [] newOrder = new int [columnCount];
OS.SendMessage (hwndHeader, OS.HDM_GETORDERARRAY, columnCount, newOrder);
@@ -3941,9 +3942,9 @@ void setScrollWidth (int width) {
OS.GetScrollInfo (hwndParent, OS.SB_HORZ, info);
info.nPage = info.nMax + 1;
OS.SetScrollInfo (hwndParent, OS.SB_HORZ, info, true);
- OS.GetScrollInfo (hwndParent, OS.SB_VERT, info);
- info.nPage = info.nMax + 1;
- OS.SetScrollInfo (hwndParent, OS.SB_VERT, info, true);
+// OS.GetScrollInfo (hwndParent, OS.SB_VERT, info);
+// info.nPage = info.nMax + 1;
+// OS.SetScrollInfo (hwndParent, OS.SB_VERT, info, true);
} else {
OS.GetClientRect (hwndParent, rect);
OS.GetScrollInfo (hwndParent, OS.SB_HORZ, info);
@@ -4733,6 +4734,7 @@ int windowProc (int hwnd, int msg, int wParam, int lParam) {
updateLayout (false, false);
}
setResizeChildren (true);
+ updateScrollBar ();
return code;
}
case OS.WM_NCPAINT: {

Back to the top