Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 240e1b5

Browse files
committedAug 18, 2021
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)
Please sign in to comment.