changeset 8479:7a14d29e04c8 8u40-b15

RT-39389: [ColorPicker, Traversal] StackOverflowError when pressing traversal keys on color palette.
author jgiles
date Mon, 17 Nov 2014 11:37:19 +1300
parents 66391c303b5b
children 273d50862b74 b8992e3dd461 7d3199f6a236
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ColorPalette.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ColorPalette.java	Fri Nov 14 17:25:35 2014 -0800
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ColorPalette.java	Mon Nov 17 11:37:19 2014 +1300
@@ -344,12 +344,12 @@
 
             @Override
             public Node selectFirst(TraversalContext context) {
-                return context.selectFirstInParent(context.getRoot());
+                return colorPickerGrid.getChildren().get(0);
             }
 
             @Override
             public Node selectLast(TraversalContext context) {
-                return context.selectLastInParent(context.getRoot());
+                return customColorLink;
             }
         }));
     }