Skip to content

Commit 1c7c530

Browse files
author
Shigeru KANEMOTO
committed
Scroll the editor tab menu.
When the sketch folder contains a lot of source files, the editor tab menu should scroll. Without this, we don't have a way to select some files hidden under bottom edge of the screen.
1 parent e1856b3 commit 1c7c530

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/processing/app/EditorHeader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
*/
2323

2424
package processing.app;
25+
import processing.app.tools.MenuScroller;
2526
import static processing.app.I18n._;
2627

2728
import java.awt.*;
@@ -238,6 +239,7 @@ public void rebuildMenu() {
238239

239240
} else {
240241
menu = new JMenu();
242+
MenuScroller.setScrollerFor(menu);
241243
popup = menu.getPopupMenu();
242244
add(popup);
243245
popup.setLightWeightPopupEnabled(true);

0 commit comments

Comments
 (0)