summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover <steve>2003-02-20 01:45:08 +0000
committerSteve Northover <steve>2003-02-20 01:45:08 +0000
commit889e8b5e571d2e4b2e1f70fadd792e5876d526c7 (patch)
tree1e3cea32b5dc1498eb8f6d6c70149eba8ff8db57
parentcb50e9d16c9f0d9a994ddbd50461dcdcbccf4ddc (diff)
downloadeclipse.platform.swt-889e8b5e571d2e4b2e1f70fadd792e5876d526c7.tar.gz
eclipse.platform.swt-889e8b5e571d2e4b2e1f70fadd792e5876d526c7.tar.xz
eclipse.platform.swt-889e8b5e571d2e4b2e1f70fadd792e5876d526c7.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/List.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/List.java
index a9c5cbe2fe..8e77ed87f7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/List.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/List.java
@@ -332,8 +332,17 @@ int itemDataProc (int browser, int id, int property, int itemData, int setValue)
int kEventControlBoundsChanged (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlBoundsChanged (nextHandler, theEvent, userData);
- Rectangle rect = getClientArea ();
- OS.SetDataBrowserTableViewNamedColumnWidth (handle, COLUMN_ID, (short) rect.width);
+ /*
+ * This code is intentionally commented. Setting the column
+ * width to be the size of the client are causes the initial
+ * value of the veritcal scroll bar to be wrong and causes
+ * '...' to appear in strings that are too long, even though
+ * a horizontal scroll bar is present.
+ */
+// Rect rect = new Rect (), inset = new Rect ();
+// OS.GetControlBounds (handle, rect);
+// OS.GetDataBrowserScrollBarInset (handle, inset);
+// OS.SetDataBrowserTableViewNamedColumnWidth (handle, COLUMN_ID, (short) (rect.right - rect.left + inset.right));
return result;
}