changeset 3836:5a874c54b898

RT-15797 : Accordion control doesn't size to scene correctly
author raginip
date Mon, 03 Jun 2013 16:09:07 -0700
parents b7cc945d9169
children 93863dfb5745
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TitledPaneSkin.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TitledPaneSkin.java	Mon Jun 03 17:19:28 2013 +1200
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TitledPaneSkin.java	Mon Jun 03 16:09:07 2013 -0700
@@ -88,6 +88,7 @@
         contentContainer.getChildren().setAll(contentRegion);
 
         if (titledPane.isExpanded()) {
+            setTransition(1.0f);
             setExpanded(titledPane.isExpanded());
         } else {
             setTransition(0.0f);
@@ -267,6 +268,7 @@
     private void doAnimationTransition() {
         Duration duration;
 
+        
         if (contentRegion.getContent() == null) {
             return;
         }