royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] 04/07: switch to PopUpList and clean up
Date Fri, 23 Feb 2018 00:15:04 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit cf255ee0defb1f62908ee8a09fbd0f88f53277ca
Author: Alex Harui <aharui@apache.org>
AuthorDate: Thu Feb 22 16:13:04 2018 -0800

    switch to PopUpList and clean up
---
 .../royale/ASDoc/src/main/royale/ASDocMainView.mxml   | 19 ++++++++++---------
 .../royale/ASDoc/src/main/royale/models/ASDocModel.as |  2 +-
 2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
index 9c1c986..8ec6394 100644
--- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
+++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
@@ -30,7 +30,7 @@ limitations under the License.
             import org.apache.royale.core.ClassFactory;
             import org.apache.royale.events.Event;
             import org.apache.royale.events.DetailEvent;
-            import org.apache.royale.html.List;
+            import org.apache.royale.html.PopUpList;
             import org.apache.royale.utils.PointUtils;
 			
             private function packagesReadyHandler(event:Event):void
@@ -39,6 +39,9 @@ limitations under the License.
             	updateView();
             }
 			
+            /**
+             * @royalesuppresspublicvarwarning
+             */
             public var currentPackage:String;
             
             private function packageChangedHandler():void
@@ -53,6 +56,9 @@ limitations under the License.
                 dispatchEvent(new Event("packageChanged"));
             }
                         
+            /**
+             * @royalesuppresspublicvarwarning
+             */
             public var currentClass:String;
             
             private function classChangedHandler():void
@@ -140,7 +146,7 @@ limitations under the License.
             	}
             }
             
-            private var popUpList:List;
+            private var popUpList:PopUpList;
             private var max_results:int = 200;
             private var too_many:Array = [ "Too many search results" ];
             
@@ -148,18 +154,13 @@ limitations under the License.
             {
             	if (!popUpList)
             	{
-            		popUpList = new List();
+            		popUpList = new PopUpList();
             		popUpList.itemRenderer = new ClassFactory(ClassPickerHashAnchorStringItemRenderer);
             		popUpList.dataProvider = too_many;
             		addElement(popUpList);
-            		COMPILE::JS
-            		{
-            			popUpList.positioner.style.position = "absolute";
-            			popUpList.positioner.style.backgroundColor = "#fff";
-            		}
             		var pt:Point = new Point(searchTI.x, searchTI.y);
             		pt.y += searchTI.height;
-            		//pt = PointUtils.localToGlobal(pt, titleGroup); // probably need this after
we fix x,y
+            		pt = PointUtils.localToGlobal(pt, titleGroup);
             		popUpList.x = pt.x;
             		popUpList.y = pt.y;
             		popUpList.width = searchTI.width;
diff --git a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
index 0e8bbd3..4e6a818 100644
--- a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
+++ b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
@@ -200,7 +200,7 @@ package models
         private var _attributesMap:Object;
         
         /**
-         * @flexjsignorecoercion ASDocClass 
+         * @royaleignorecoercion ASDocClass 
          */
         private function completeClassHandler(event:Event):void
         {

-- 
To stop receiving notification emails like this one, please contact
aharui@apache.org.

Mime
View raw message