diff options
author | Steve Northover <steve> | 2003-02-20 01:45:08 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2003-02-20 01:45:08 +0000 |
commit | 889e8b5e571d2e4b2e1f70fadd792e5876d526c7 (patch) | |
tree | 1e3cea32b5dc1498eb8f6d6c70149eba8ff8db57 | |
parent | cb50e9d16c9f0d9a994ddbd50461dcdcbccf4ddc (diff) | |
download | eclipse.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.java | 13 |
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; } |