changeset 5175:240636b0c18c

RT-27447: [TableView] [TreeTableView] When multiple cells are selected in horizontal direction, control doesn't scroll to tle last selected item. Reviewed-by: psomashe
author jgiles
date Thu, 26 Sep 2013 14:14:55 +1200
parents acf01d7fdc73
children 4d3df4e0c494
files modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TableViewBehaviorBase.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TableViewBehaviorBase.java	Thu Sep 26 14:08:50 2013 +1200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TableViewBehaviorBase.java	Thu Sep 26 14:14:55 2013 +1200
@@ -643,6 +643,8 @@
                 getSelectionModel().selectLeftCell();
             }
         });
+
+        onSelectLeftCell.run();
     }
 
     protected void alsoSelectRightCell() {
@@ -651,6 +653,8 @@
                 getSelectionModel().selectRightCell();
             }
         });
+
+        onSelectRightCell.run();
     }
     
     protected void updateRowSelection(int delta) {