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

[Menu] When setting custom font size, the sub menu doesn't adjoin its parent menu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8u40
    • 8u20, 8u40
    • javafx

    Description

      Please see attached snapshots and test program. The program set font size of the Menu to a non-default value. When the menu is near the edge of the screen, the sub menu doesn't adjoin its parent menu.

      This is found with 8u40 and reproducible with 8u20. But 8u11 works fine. So it could be a regression.
      It only happens when the menu is close to the edge of the screen, then the sub menu wraps. When font size is smaller than default, the sub menu keeps away from the parent menu, but when font size is larger, the sub menu overlaps the parent menu.

      Attachments

        1. custom-font-size_8u11.png
          53 kB
          Jenny Huang
        2. custom-font-size_8u40.png
          50 kB
          Jenny Huang
        3. MenuBarApp.java
          3 kB
          Jenny Huang

        Activity

          People

            jgiles Jonathan Giles
            jennyh Jenny Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: