fix(renderer): reset cached values on font size change in CustomMultiLineTextArea

This commit is contained in:
extio-de
2026-01-27 22:13:49 +01:00
parent 16208971aa
commit 1cc453dde6

View File

@@ -97,6 +97,8 @@ public class CustomMultiLineTextArea extends Component {
public void setFontSize(final int fontSize) { public void setFontSize(final int fontSize) {
if (this.fontSize != fontSize) { if (this.fontSize != fontSize) {
this.cachedLineHeight = 0; this.cachedLineHeight = 0;
this.cachedSpaceWidth = 0;
this.cachedFontSize = 0;
} }
this.fontSize = fontSize; this.fontSize = fontSize;
this.dirty = true; this.dirty = true;