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

ContextMenu fires Menu.ON_SHOWING even if it has no items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8u20
    • javafx
    • None

      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;

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

              Created:
              Updated:
              Resolved:
              Imported: