mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-11 05:54:16 +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;
|
package processing.app;
|
||||||
|
import processing.app.tools.MenuScroller;
|
||||||
import static processing.app.I18n._;
|
import static processing.app.I18n._;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
@ -238,6 +239,7 @@ public class EditorHeader extends JComponent {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
menu = new JMenu();
|
menu = new JMenu();
|
||||||
|
MenuScroller.setScrollerFor(menu);
|
||||||
popup = menu.getPopupMenu();
|
popup = menu.getPopupMenu();
|
||||||
add(popup);
|
add(popup);
|
||||||
popup.setLightWeightPopupEnabled(true);
|
popup.setLightWeightPopupEnabled(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user