Ignore:
Timestamp:
2014-08-30T01:59:31+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10392 - rework of MenuScroller to replace static scrollCount approach by dynamic behaviour (fix regressions from #10207)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainMenu.java

    r7291 r7463  
    570570        final JMenu menu = new JMenu(tr(name));
    571571        if (!GraphicsEnvironment.isHeadless()) {
    572             int menuItemHeight = new JMenu().add(newAction).getPreferredSize().height;
    573             MenuScroller.setScrollerFor(menu,
    574                     MenuScroller.computeScrollCount(menu, menuItemHeight));
     572            MenuScroller.setScrollerFor(menu);
    575573        }
    576574        return addMenu(menu, name, mnemonicKey, position, relativeHelpTopic);
Note: See TracChangeset for help on using the changeset viewer.