changeset 6869:bbc5c4272696

RT-36789 [Layout] Stage must be resized to force layout Reviewed by: jgiles
author Martin Sladecek <martin.sladecek@oracle.com>
date Fri, 25 Apr 2014 07:55:09 +0200
parents 09e61c65f172
children 2a9ac59e84eb
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/AccordionSkin.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/AccordionSkin.java	Fri Apr 25 07:53:11 2014 +0200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/AccordionSkin.java	Fri Apr 25 07:55:09 2014 +0200
@@ -81,7 +81,7 @@
             firstTitledPane.getStyleClass().add("first-titled-pane");
         }
 
-        clipRect = new Rectangle();
+        clipRect = new Rectangle(accordion.getWidth(), accordion.getHeight());
         getSkinnable().setClip(clipRect);
 
         initTitledPaneListeners(accordion.getPanes());