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

ContextMenu fires Menu.ON_SHOWING even if it has no items

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
      None

      Description

      The fireEvent should probably happen after the check for getItems().getSize() == 0.

           public void show(Node anchor, Side side, double dx, double dy) {
              if (anchor == null) return;
              Event.fireEvent(this, new Event(Menu.ON_SHOWING));
              if (getItems().size() == 0) return;

        Attachments

          Activity

            People

            Assignee:
            dgrieve David Grieve
            Reporter:
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: