changeset 1641:fa463c60d951

RT-27945: JAVAFX.TITLEDPANE.CONTENT OF THE TITLEDPANE DISAPPEARS WHEN ANIMATION IS CHANGED
author jgiles
date Fri, 08 Feb 2013 09:19:31 +1300
parents 4dee5b1f7214
children b46fbd1f74f9
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TitledPaneSkin.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TitledPaneSkin.java	Tue Mar 26 10:44:33 2013 -0700
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TitledPaneSkin.java	Fri Feb 08 09:19:31 2013 +1300
@@ -161,7 +161,9 @@
             } else {
                 setTransition(0.0f);
             }
-            contentRegion.setVisible(expanded);
+            if (contentRegion.getContent() != null) {
+                contentRegion.getContent().setVisible(expanded);
+            }
             requestLayout();
         }
     }