-
Bug
-
Resolution: Fixed
-
P3
-
fx2.0
1) Run HelloMenuButton
2) Click on MenuButton1, the popup appears
3) Click on MenuButton1 while the popup is up. The menu hides and reappears. Instead, the menu should only hide.
Looks like autohide is kicking in before this code from MenuBehavior (similar code is also in MenuButton's behavior code):
@Override public void mousePressed(MouseEvent e) {
super.mousePressed(e);
if (menu.isShowing() && menu.getParentMenu() == null) {
hide();
} else {
show();
}
}
So, when this method is called, the menu is not showing because of autohide, so we just immediately show it.
2) Click on MenuButton1, the popup appears
3) Click on MenuButton1 while the popup is up. The menu hides and reappears. Instead, the menu should only hide.
Looks like autohide is kicking in before this code from MenuBehavior (similar code is also in MenuButton's behavior code):
@Override public void mousePressed(MouseEvent e) {
super.mousePressed(e);
if (menu.isShowing() && menu.getParentMenu() == null) {
hide();
} else {
show();
}
}
So, when this method is called, the menu is not showing because of autohide, so we just immediately show it.
- is blocked by
-
JDK-8114638 ContextMenu does not go away on mouse down in the context menu control
- Closed
-
JDK-8113108 MenuBar: expanded menu is not collapsed on mouse click
- Closed
- relates to
-
JDK-8112901 MenuButton: isShowing()/showingProperty() works incorrectly
- Closed
-
JDK-8095591 ContextMenu (Popupmenu) doesn't get dismissed when clicking outside
- Closed