Changeset 5186 in josm
- Timestamp:
- 2012-04-15T00:02:45+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r5185 r5186 222 222 } 223 223 if (menuItemHeight > 0) { 224 225 226 227 228 229 224 int scrollcount = (Toolkit.getDefaultToolkit().getScreenSize().height / menuItemHeight) - 1; 225 if (subMenu instanceof JMenu) { 226 MenuScroller.setScrollerFor((JMenu) subMenu, scrollcount); 227 } else if (subMenu instanceof JPopupMenu) { 228 MenuScroller.setScrollerFor((JPopupMenu)subMenu, scrollcount); 229 } 230 230 } 231 231 return (hasBookmarks || offsetServerSupported) ? subMenu : adjustMenuItem;
Note:
See TracChangeset
for help on using the changeset viewer.