From commits-return-2378-archive-asf-public=cust-asf.ponee.io@royale.apache.org Fri Feb 23 01:15:11 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1CCC318064E for ; Fri, 23 Feb 2018 01:15:10 +0100 (CET) Received: (qmail 45411 invoked by uid 500); 23 Feb 2018 00:15:10 -0000 Mailing-List: contact commits-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@royale.apache.org Delivered-To: mailing list commits@royale.apache.org Received: (qmail 45402 invoked by uid 99); 23 Feb 2018 00:15:10 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Feb 2018 00:15:10 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 7FED185D8A; Fri, 23 Feb 2018 00:15:01 +0000 (UTC) Date: Fri, 23 Feb 2018 00:15:04 +0000 To: "commits@royale.apache.org" Subject: [royale-asjs] 04/07: switch to PopUpList and clean up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: aharui@apache.org In-Reply-To: <151934490068.28564.1338562185042511728@gitbox.apache.org> References: <151934490068.28564.1338562185042511728@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: royale-asjs X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: cf255ee0defb1f62908ee8a09fbd0f88f53277ca X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180223001501.7FED185D8A@gitbox.apache.org> 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 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.