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

Width of ContextMenu is always prefWidth

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • 8u20
    • fx2.1
    • javafx
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported: