This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 49fc80e  Make sure drop down list is visible regardless of bg
49fc80e is described below

commit 49fc80efdd4af833bf25384b73ee03e18e71be9a
Author: DESKTOP-RH4S838\Yishay <[email protected]>
AuthorDate: Sat Aug 3 12:36:24 2019 +0300

    Make sure drop down list is visible regardless of bg
---
 frameworks/projects/SparkRoyale/src/main/resources/defaults.css    | 5 +++++
 .../src/main/royale/spark/components/beads/DropDownListView.as     | 7 +++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css 
b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
index 7bc7c3b..1d4dc62 100644
--- a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
+++ b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
@@ -111,6 +111,11 @@ DropDownList
        IBeadController: 
ClassReference("spark.components.beads.controllers.DropDownListController");
 }
 
+.DropDownDataGroup
+{
+       background-color: #FFFFFF;
+}
+
 List
 {
        IBeadView: 
ClassReference("spark.components.beads.SkinnableContainerView");
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
index 7a24490..46713d2 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
@@ -35,6 +35,7 @@ import org.apache.royale.core.IPopUpHost;
 import org.apache.royale.core.ISelectionModel;
 import org.apache.royale.core.IStrand;
 import org.apache.royale.core.IStrandWithModel;
+import org.apache.royale.core.IStyleableObject;
 import org.apache.royale.core.IUIBase;
 import org.apache.royale.events.Event;
 import org.apache.royale.events.IEventDispatcher;
@@ -145,14 +146,16 @@ public class DropDownListView extends 
SkinnableContainerView implements IDropDow
         if (value != _popUpVisible)
         {
             _popUpVisible = value;
+            var popUpDisplayObject:IFlexDisplayObject = popUp as 
IFlexDisplayObject;
             if (value)
             {
-                PopUpManager.addPopUp(popUp as IFlexDisplayObject, _strand);
+                PopUpManager.addPopUp(popUpDisplayObject, _strand);
+                (popUpDisplayObject as IStyleableObject).className = 
"DropDownDataGroup";
                 (popUp as IUIComponent).setActualSize((popUp as 
IUIComponent).width, 100);
             }
             else
             {
-                PopUpManager.removePopUp(popUp as IFlexDisplayObject);
+                PopUpManager.removePopUp(popUpDisplayObject);
             }
         }
     }

Reply via email to