changeset 5160:50a4af3f8b03

RT-31100: LCD text not rendering on cached node unless background is set Contributed-by: jasper Reviewed-by: felipe, jgiles
author jgiles
date Wed, 18 Sep 2013 12:56:02 +1200
parents 3911a222bf96
children 5031afa0b69d
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ScrollPaneSkin.java modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ScrollPaneSkin.java	Mon Sep 16 20:11:55 2013 -0700
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ScrollPaneSkin.java	Wed Sep 18 12:56:02 2013 +1200
@@ -245,6 +245,7 @@
         // prevent requestLayout requests from within scrollNode from percolating up
         viewRect.setManaged(false);
         viewRect.setCache(true);
+        viewRect.getStyleClass().add("viewport");
 
         clipRect = new Rectangle();
         viewRect.setClip(clipRect);
--- a/modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css	Mon Sep 16 20:11:55 2013 -0700
+++ b/modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css	Wed Sep 18 12:56:02 2013 +1200
@@ -1054,7 +1054,9 @@
  * ScrollPane                                                                  *
  *                                                                             *
  ******************************************************************************/
-
+.scroll-pane > .viewport {
+    -fx-background-color: -fx-background;
+}
 .scroll-pane > .scroll-bar:horizontal {
     -fx-background-insets: 0 1 1 1, 1;
     -fx-padding: 0 1 0 1;