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

PopupMenu width should not take into account Separator width in most cases

    Details

      Description

      When using a control that has a PopupMenu and contains a Separator control, there is a situation where the width of the PopupMenu is far greater than what it should be. This occurs when the menu items pref width (ignoring the separator) is LESS THAN the separators pref width. In this situation, the width of the menu will actually be the pref width of the separator, when in reality we should be sizing the separator to fit the pref width of the actual menu items.

      The only exception to this is of course when the menu ONLY has separator controls, which whilst admittedly is dumb, is a possibility. In this circumstance, we should size the width of the PopupMenu to be the width of the widest separator. Yes, I know this is dumb.

        Attachments

        1. after.PNG
          after.PNG
          10 kB
        2. before.PNG
          before.PNG
          10 kB
        3. Main.fx
          0.9 kB
        4. rt8465.patch
          2 kB

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              jgiles Jonathan Giles
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: