Skip to content

Commit 49a0512

Browse files
author
Federico Fissore
committed
Examples now scrollable. Closes #1548 and #1177
1 parent d535f87 commit 49a0512

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/processing/app/Base.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import processing.app.javax.swing.filechooser.FileNameExtensionFilter;
4949
import processing.app.packages.Library;
5050
import processing.app.packages.LibraryList;
51+
import processing.app.tools.MenuScroller;
5152
import processing.app.tools.ZipDeflater;
5253
import processing.core.*;
5354
import static processing.app.I18n._;
@@ -1632,8 +1633,10 @@ public void actionPerformed(ActionEvent e) {
16321633
// not a sketch folder, but maybe a subfolder containing sketches
16331634
JMenu submenu = new JMenu(name);
16341635
boolean found = addSketches(submenu, folder, replaceExisting);
1635-
if (found)
1636+
if (found) {
16361637
menu.add(submenu);
1638+
MenuScroller.setScrollerFor(submenu);
1639+
}
16371640
return found;
16381641
}
16391642

0 commit comments

Comments
 (0)