Skip to content

Commit

Permalink
Invert font size condition. Relates to #132
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jan 24, 2021
1 parent 96f88b5 commit c790f65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public String getName() {
};
iconSize.addListener((v, o, n) -> {
Font font = FontIcon.this.getFont();
if (Math.abs(font.getSize() - n.doubleValue()) < EPSILON) {
if (Math.abs(font.getSize() - n.doubleValue()) >= EPSILON) {
FontIcon.this.setFont(Font.font(font.getFamily(), n.doubleValue()));
FontIcon.this.setStyle(normalizeStyle(getStyle(), "-fx-font-size", n.intValue() + "px"));
}
Expand Down

0 comments on commit c790f65

Please sign in to comment.