summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2003-02-28 15:14:04 +0000
committerVeronika Irvine <veronika>2003-02-28 15:14:04 +0000
commit5ee70b3c9880e90f7d9d059d3c65f30250cd0c95 (patch)
tree42d45d2f89371fedeb74c2bbf177560b3c5128c3 /bundles/org.eclipse.swt
parent9c209276598ec2b5c2c22811fde9f72c3099e720 (diff)
downloadeclipse.platform.swt-5ee70b3c9880e90f7d9d059d3c65f30250cd0c95.tar.gz
eclipse.platform.swt-5ee70b3c9880e90f7d9d059d3c65f30250cd0c95.tar.xz
eclipse.platform.swt-5ee70b3c9880e90f7d9d059d3c65f30250cd0c95.zip
32856
Diffstat (limited to 'bundles/org.eclipse.swt')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTree.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTree.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTree.java
index 9c1c30f59f..7b35690740 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTree.java
@@ -239,6 +239,9 @@ public Color getBackground () {
// the TableTree adapting to changes in the System color settings.
return table.getBackground();
}
+public Rectangle getClientArea () {
+ return table.getClientArea();
+}
public Color getForeground () {
return table.getForeground();
}
@@ -458,8 +461,8 @@ void onDispose(Event e) {
}
void onResize(Event e) {
- Rectangle area = getClientArea();
- table.setBounds(0, 0, area.width, area.height);
+ Point size = getSize();
+ table.setBounds(0, 0, size.x, size.y);
}
void onSelection(Event e) {