Skip to content

Commit ddd219d

Browse files
[IDE] Title of sketch is misaligned on Linux FIX arduino#10209
1 parent 15089f0 commit ddd219d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/processing/app/EditorHeader.java

+5
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ public void paintComponent(Graphics screen) {
271271

272272
g.setColor(textColor[state]);
273273
int baseline = (sizeH + fontAscent) / 2;
274+
275+
// FIX for OpenJDK 8 and 11 on Linux (GNOME/KDE) (https://github.com/arduino/Arduino/issues/10209)
276+
if (OSUtils.isLinux()) {
277+
baseline = baseline - 2;
278+
}
274279
//g.drawString(sketch.code[i].name, textLeft, baseline);
275280
g.drawString(text, textLeft, baseline);
276281

0 commit comments

Comments
 (0)