changeset 5993:4d5e31cb54d1

RT-34915: [TableView, TreeTableView] sort order dots are not always drawn immediately
author jgiles
date Tue, 17 Dec 2013 12:34:53 +1300
parents 6953f0602cb7
children dabee4f56388
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Mon Dec 16 16:36:26 2013 +1300
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Tue Dec 17 12:34:53 2013 +1300
@@ -108,7 +108,6 @@
     private boolean isSortColumn;
 
     private boolean isSizeDirty = false;
-    private boolean sortOrderDotsDirty = false;
 
     boolean isLastVisibleColumn = false;
     private int columnIndex = -1;
@@ -376,9 +375,6 @@
         if (isSizeDirty) {
             resize(getTableColumn().getWidth(), getHeight());
             isSizeDirty = false;
-        } else if (sortOrderDotsDirty) {
-            updateSortOrderDots(sortPos);
-            sortOrderDotsDirty = false;
         }
 
         double sortWidth = 0;
@@ -612,7 +608,7 @@
                 GridPane.setHalignment(arrow, HPos.CENTER);
                 sortArrowGrid.add(sortOrderDots, 1, dotsRow);
 
-                sortOrderDotsDirty = true;
+                updateSortOrderDots(sortPos);
             } else {
                 // only show the arrow
                 sortArrowGrid.add(arrow, 1, 1);