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

Width of ContextMenu is always prefWidth

    XMLWordPrintable

    Details

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

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: