changeset 1257:527e107cfec5

RT-21891 ChoiceBox popup looks strange after refilling.
author Paru Somashekar <paru.somashekar@oracle.com>
date Fri, 08 Jun 2012 12:52:48 -0700
parents e1200e6556ab
children 8bc39da3d194
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ChoiceBoxSkin.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ChoiceBoxSkin.java	Fri Jun 08 11:23:50 2012 -0700
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ChoiceBoxSkin.java	Fri Jun 08 12:52:48 2012 -0700
@@ -106,6 +106,9 @@
                 }
             }
             updateSelection();
+            // RT-21891 weird initial appearance: need a better fix for this instead
+            // of having to rely on impl_processCSS. 
+            popup.getScene().getRoot().impl_processCSS(true); 
             requestLayout(); // RT-18052 resize of choicebox should happen immediately.
         }
     };