Width of ContextMenu is always prefWidth

XMLWordPrintable

    • Type: Bug
    • Resolution: Incomplete
    • Priority: P4
    • 8u20
    • Affects Version/s: fx2.1
    • Component/s: javafx
    • Environment:

      2.1b16

      Width of ContextMenu is always prefWidth, same setting all width:

      ContextMenu popup = new ContextMenu();
      popup.getItems().add(new CustomMenuItem(new Label("TEST")));
      popup.setAutoHide(true);
      popup.setAutoFix(true);
      popup.setHideOnEscape(true);
      popup.setWidth(500);
      popup.setMinWidth(500);
      popup.setPrefWidth(500);
      popup.setMaxWidth(Double.MAX_VALUE);
      popup.show(this, Side.BOTTOM, 0D, 0D);


      this code not is working.

            Assignee:
            Jonathan Giles
            Reporter:
            giovanni stiwes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: