changeset 5495:36bd10082500

RT-33636: Accordion: Background of content is visible after close the pane
author jgiles
date Wed, 23 Oct 2013 12:17:23 +1300
parents c8cdab5d10df
children c5e80d3a9fd1
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TitledPaneSkin.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/TitledPaneSkin.java	Wed Oct 23 11:55:54 2013 +1300
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TitledPaneSkin.java	Wed Oct 23 12:17:23 2013 +1300
@@ -215,10 +215,10 @@
             w, headerHeight, 0, HPos.LEFT, VPos.CENTER);
 
         // content
-        double contentHeight = h - headerHeight;
+        double contentHeight = (h - headerHeight) * getTransition();
         if (isInsideAccordion()) {
             if (prefHeightFromAccordion != 0) {
-                contentHeight = prefHeightFromAccordion - headerHeight;
+                contentHeight = (prefHeightFromAccordion - headerHeight) * getTransition();
             }
         }