Skip to content

Commit ad5561d

Browse files
hansonrhansonr
authored andcommitted
back to Y-translate of -50% for buttons and labels, AWT and Swing
1 parent 2cdeaf0 commit ad5561d

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/JSComponentUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,7 @@ protected void setAlignments(AbstractButton b, boolean justGetPreferred) {
26202620
iscale = "scale(0.8,0.8)";
26212621
}
26222622
// +3 here is a fudge factor for the AWT applets
2623-
yoff = (wIcon == 0 ? "-" + ((getFont().getFontMetrics().getAscent()>>1) + (isAWT ? 0 : 0)) + "px" : "-50%");
2623+
yoff = "-50%";//(wIcon == 0 && false ? "-" + ((getFont().getFontMetrics().getAscent()>>1) + (isAWT ? 0 : 0)) + "px" : "-50%");
26242624
break;
26252625
case SwingConstants.BOTTOM:
26262626
top = itop = 100;

0 commit comments

Comments
 (0)