-
Bug
-
Resolution: Incomplete
-
P4
-
fx2.1
-
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.
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.