changeset 2132:0eb2889dede0

RT-27004: [TableView, TreeTableView] After sort node becomes invisible the header text remaines shifted.
author jgiles
date Fri, 04 Jan 2013 15:03:45 +1300
parents 51f27cb7e5da
children b0a03ab44363
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableColumnHeader.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Fri Jan 04 14:28:46 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Fri Jan 04 15:03:45 2013 +1300
@@ -404,7 +404,12 @@
         if (! isSortingEnabled()) return;
         
         isSortColumn = sortPos != -1;
-        if (! isSortColumn) return;
+        if (! isSortColumn) {
+            if (sortArrow != null) {
+                sortArrow.setVisible(false);
+            }
+            return;
+        }
         
         final int sortColumnCount = getTableViewSkin().getSortOrder().size();
         boolean showSortOrderDots = sortPos <= 3 && sortColumnCount > 1;