changeset 9055:6e23712c7468 9-b66

RT-40750: TreeTableView ImageViews vanish and aren't redrawn when scrolling
author jgiles
date Mon, 25 May 2015 10:16:03 +1200
parents 489dba5e1ac1
children 7dd114a3d31b 147dd5284f98
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableRowSkinBase.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/TableRowSkinBase.java	Fri May 22 23:21:07 2015 -0700
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableRowSkinBase.java	Mon May 25 10:16:03 2015 +1200
@@ -382,7 +382,7 @@
                     if (disclosureVisible) {
                         double ph = disclosureNode.prefHeight(disclosureWidth);
 
-                        if (width < (disclosureWidth + leftMargin)) {
+                        if (width > 0 && width < (disclosureWidth + leftMargin)) {
                             fadeOut(disclosureNode);
                         } else {
                             fadeIn(disclosureNode);
@@ -404,7 +404,7 @@
                         graphicWidth = graphic.prefWidth(-1) + 3;
                         double ph = graphic.prefHeight(graphicWidth);
 
-                        if (width < disclosureWidth + leftMargin + graphicWidth) {
+                        if (width > 0 && width < disclosureWidth + leftMargin + graphicWidth) {
                             fadeOut(graphic);
                         } else {
                             fadeIn(graphic);