Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8090653

Make maximum Menu height a little smaller

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      The maximum height of a Menu (i.e. before the scroll arrows appear on the menu, due to too many MenuItems) is currently set to be the full height of the screen. This can look a little bit too huge, especially if your app doesn't have a Stage that's anywhere near that tall.

      This edge case would look a little nicer if there was a smaller maximum height for Menus (half screen height?), or even if there was a property where the maximum height for a Menu could be directly specified.

      For that matter, it would also be helpful if you could specific a maximum width for a MenuItem, too, since sometimes you don't have 100% control over the text that gets put into a MenuItem. It would be cool if it just truncated long text with an ellipsis like a Label does.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cbanackjfx Cory Banack (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported: