mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03: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:
@ -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);
|
||||
|
Reference in New Issue
Block a user