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

Width of ContextMenu is always prefWidth

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Incomplete
    • fx2.1
    • 8u20
    • javafx
    • 2.1b16

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: