Skip to content

Commit afef032

Browse files
author
soheil_h_y
committed
1. Default height computation is fixed.
1 parent e6641d7 commit afef032

File tree

1 file changed

+1
-1
lines changed
  • sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Table.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
618618
height = 24;
619619
}
620620
if (width == 0) width = DEFAULT_WIDTH;
621-
if (height == 0) height = DEFAULT_HEIGHT;
621+
if (height == 0) height = DEFAULT_HEIGHT * getItemCount();
622622
if (wHint != SWT.DEFAULT) width = wHint;
623623
if (hHint != SWT.DEFAULT) height = hHint;
624624
int border = getBorderWidth ();

0 commit comments

Comments
 (0)