diff options
author | Veronika Irvine <veronika> | 2003-02-28 15:14:04 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2003-02-28 15:14:04 +0000 |
commit | 5ee70b3c9880e90f7d9d059d3c65f30250cd0c95 (patch) | |
tree | 42d45d2f89371fedeb74c2bbf177560b3c5128c3 | |
parent | 9c209276598ec2b5c2c22811fde9f72c3099e720 (diff) | |
download | eclipse.platform.swt-5ee70b3c9880e90f7d9d059d3c65f30250cd0c95.tar.gz eclipse.platform.swt-5ee70b3c9880e90f7d9d059d3c65f30250cd0c95.tar.xz eclipse.platform.swt-5ee70b3c9880e90f7d9d059d3c65f30250cd0c95.zip |
32856
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableTree.java | 7 |
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) {
|