Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 240e1b5

Browse files
committed
Force font metrics recalculation when changing tabs
Fix #7321
1 parent a55a6d2 commit 240e1b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎app/src/processing/app/Editor.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,7 @@ public void selectTab(final int index) {
14521452
codePanel.removeAll();
14531453
codePanel.add(tabs.get(index), BorderLayout.CENTER);
14541454
tabs.get(index).requestFocusInWindow(); // get the caret blinking
1455+
tabs.get(index).applyPreferences();
14551456
// For some reason, these are needed. Revalidate says it should be
14561457
// automatically called when components are added or removed, but without
14571458
// it, the component switched to is not displayed. repaint() is needed to

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /