Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2007-10-22 21:49:49 +0000
committerSteve Northover2007-10-22 21:49:49 +0000
commita6f9842610a1af9512460b71eca20b60f1d86692 (patch)
tree54d845768c4690f39763b51e206b80c40e6bdbde
parentb579bbb1a3ac0c86d96ed76d0ae3a6fca157e9e7 (diff)
downloadeclipse.platform.swt-a6f9842610a1af9512460b71eca20b60f1d86692.tar.gz
eclipse.platform.swt-a6f9842610a1af9512460b71eca20b60f1d86692.tar.xz
eclipse.platform.swt-a6f9842610a1af9512460b71eca20b60f1d86692.zip
206743 - Tree with columns has drawing errors when resizing to a minimum
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java9
1 files changed, 8 insertions, 1 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 adde8e049b..181aab99d2 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
@@ -5288,7 +5288,14 @@ void updateScrollBar () {
OS.SetScrollInfo (hwndParent, OS.SB_VERT, info, true);
} else {
OS.GetScrollInfo (handle, OS.SB_VERT, info);
- if (info.nPage == 0) info.nPage = info.nMax + 1;
+ if (info.nPage == 0) {
+ SCROLLBARINFO psbi = new SCROLLBARINFO ();
+ psbi.cbSize = SCROLLBARINFO.sizeof;
+ OS.GetScrollBarInfo (handle, OS.OBJID_VSCROLL, psbi);
+ if ((psbi.rgstate [0] & OS.STATE_SYSTEM_INVISIBLE) != 0) {
+ info.nPage = info.nMax + 1;
+ }
+ }
OS.SetScrollInfo (hwndParent, OS.SB_VERT, info, true);
}
}

Back to the top