Skip to content

Commit 1d8ec43

Browse files
hansonrhansonr
authored andcommitted
JSTextUI fix for textarea preferred height
1 parent 934f465 commit 1d8ec43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTextUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ public float getPreferredSpan(int axis) {
811811
JTextArea area = (JTextArea) editor;
812812
int h = area.getFont().getFontMetrics().getHeight();
813813
int r = area.getRows();
814-
return h * (r > 0 ? r : isAWT ? 10 : h * 6);
814+
return h * (r > 0 ? r : isAWT ? 10 : 6);
815815
}
816816
}
817817

0 commit comments

Comments
 (0)