From commits-return-6669-archive-asf-public=cust-asf.ponee.io@royale.apache.org Thu Nov 1 22:50:17 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 8D828180677 for ; Thu, 1 Nov 2018 22:50:16 +0100 (CET) Received: (qmail 87832 invoked by uid 500); 1 Nov 2018 21:50:15 -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 87807 invoked by uid 99); 1 Nov 2018 21:50:15 -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; Thu, 01 Nov 2018 21:50:15 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 06D6D87081; Thu, 1 Nov 2018 21:50:15 +0000 (UTC) Date: Thu, 01 Nov 2018 21:50:16 +0000 To: "commits@royale.apache.org" Subject: [royale-asjs] 02/04: a way for ProgrammaticSkins to force a redraw MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: aharui@apache.org In-Reply-To: <154110901486.27461.646516893269363847@gitbox.apache.org> References: <154110901486.27461.646516893269363847@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: dba1bea34c0e884632237ca0826034d92a8642cb X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20181101215015.06D6D87081@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 dba1bea34c0e884632237ca0826034d92a8642cb Author: Alex Harui AuthorDate: Thu Nov 1 14:47:45 2018 -0700 a way for ProgrammaticSkins to force a redraw --- .../projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 7 ++++++- .../projects/MXRoyale/src/main/royale/mx/skins/ProgrammaticSkin.as | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as index 7404dd1..660a71b 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as @@ -461,6 +461,7 @@ public class UIComponent extends UIBase IFlexDisplayObject, IInvalidating, IStatesObject, + ISimpleStyleClient, IUIComponent, IVisualElement, IFlexModule { //-------------------------------------------------------------------------- @@ -3431,6 +3432,8 @@ COMPILE::JS trace("invalidateParentSizeAndDisplayList not implemented"); } + protected var invalidateDisplayListFlag:Boolean = false; + /** * Marks a component so that its updateDisplayList() * method gets called during a later screen update. @@ -3456,6 +3459,7 @@ COMPILE::JS public function invalidateDisplayList():void { trace("invalidateDisplayList not implemented"); + invalidateDisplayListFlag = true; } /** @@ -3959,7 +3963,8 @@ COMPILE::JS protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { - trace("updateDisplayList not implemented"); + trace("updateDisplayList not implemented"); + invalidateDisplayListFlag = false; } diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/skins/ProgrammaticSkin.as b/frameworks/projects/MXRoyale/src/main/royale/mx/skins/ProgrammaticSkin.as index 6b50688..9dc0ac8 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/skins/ProgrammaticSkin.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/skins/ProgrammaticSkin.as @@ -455,7 +455,7 @@ public class ProgrammaticSkin extends UIComponent super.setActualSize(newWidth, newHeight); - if (changed) + if (changed || invalidateDisplayListFlag) updateDisplayList(width, height); // was invalidateDisplayList }