Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
index c34d6ba611..4cead3c454 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
@@ -517,7 +517,7 @@ Point computeSizeInPixels (int wHint, int hHint, boolean changed) {
* height as height. In that case, calculate the table height based on
* the number of items in the table.
*/
- if (hHint == SWT.DEFAULT && size.y == getHeaderHeight()) {
+ if (hHint == SWT.DEFAULT && (size.y == getHeaderHeight()) || size.y == 0) {
size.y = getItemCount() * getItemHeight() + getHeaderHeight();
}
/*

Back to the top