changeset 2313:4d5a97831c49

Focus rect in Tab was preventing closing via clicking close button. Thanks Tom Schindl for noticing!
author jgiles
date Fri, 18 Jan 2013 20:50:00 +1300
parents 44312fa8ca6e
children 18309990dcc1
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TabPaneSkin.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/TabPaneSkin.java	Fri Jan 18 16:41:49 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TabPaneSkin.java	Fri Jan 18 20:50:00 2013 +1300
@@ -1048,6 +1048,7 @@
 
             final int padding = 2;
             final Region focusIndicator = new Region();
+            focusIndicator.setMouseTransparent(true);
             focusIndicator.getStyleClass().add("focus-indicator");
             
             inner = new StackPane() {