changeset 108:2becf153e10c

need to check both showing and popup trigger to aviod the button release action
author snorthov
date Thu, 01 Dec 2011 17:21:38 -0500
parents 287a106f0d6d
children c4437d337bad
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableColumnHeader.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Thu Dec 01 17:14:58 2011 -0500
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Thu Dec 01 17:21:38 2011 -0500
@@ -248,6 +248,7 @@
         });
         setOnMouseReleased(new EventHandler<MouseEvent>() {
             @Override public void handle(MouseEvent me) {
+                if (MouseEvent.impl_getPopupTrigger(me)) return;
                 ContextMenu menu = getTableColumn().getContextMenu();
                 if (menu != null && menu.isShowing()) return;
                 if (getTableHeaderRow().isReordering() && isColumnReorderingEnabled()) {