mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
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.
This commit is contained in:
parent
e1856b373c
commit
1c7c530454
@ -22,6 +22,7 @@
|
||||
*/
|
||||
|
||||
package processing.app;
|
||||
import processing.app.tools.MenuScroller;
|
||||
import static processing.app.I18n._;
|
||||
|
||||
import java.awt.*;
|
||||
@ -238,6 +239,7 @@ public class EditorHeader extends JComponent {
|
||||
|
||||
} else {
|
||||
menu = new JMenu();
|
||||
MenuScroller.setScrollerFor(menu);
|
||||
popup = menu.getPopupMenu();
|
||||
add(popup);
|
||||
popup.setLightWeightPopupEnabled(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user