Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87073CF00 for ; Fri, 9 Jan 2015 16:10:13 +0000 (UTC) Received: (qmail 83830 invoked by uid 500); 9 Jan 2015 16:10:14 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 83715 invoked by uid 500); 9 Jan 2015 16:10:14 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 83613 invoked by uid 99); 9 Jan 2015 16:10:14 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2015 16:10:14 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 83C398165A9; Fri, 9 Jan 2015 16:10:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aharui@apache.org To: commits@flex.apache.org Date: Fri, 09 Jan 2015 16:10:16 -0000 Message-Id: In-Reply-To: <5f6919156544494491919c0a4523eb8a@git.apache.org> References: <5f6919156544494491919c0a4523eb8a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [03/22] git commit: [flex-asjs] [refs/heads/develop] - need to trigger layout at end of effects need to trigger layout at end of effects Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/e6fb0659 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/e6fb0659 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/e6fb0659 Branch: refs/heads/develop Commit: e6fb0659db882aa8780617b6cc35eed6783c53c8 Parents: 4644861 Author: Alex Harui Authored: Tue Jan 6 21:34:50 2015 -0800 Committer: Alex Harui Committed: Fri Jan 9 08:09:46 2015 -0800 ---------------------------------------------------------------------- examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e6fb0659/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml ---------------------------------------------------------------------- diff --git a/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml b/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml index 92e231a..e944e9b 100755 --- a/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml +++ b/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml @@ -120,12 +120,13 @@ limitations under the License. if (lastMove) { lastMove.addEventListener(Tween.TWEEN_UPDATE, updateLayout); + lastMove.addEventListener(Tween.TWEEN_END, updateLayout); } } private function updateLayout(event:org.apache.flex.events.Event):void { - thumbContent.dispatchEvent(new org.apache.flex.events.Event("layoutNeeded")); + thumbContentGroup.dispatchEvent(new org.apache.flex.events.Event("layoutNeeded")); } private function thumbDragStartHandler(event:MouseEvent):void @@ -307,7 +308,7 @@ limitations under the License. fadeInThumbnails(); }); } - thumbContent.dispatchEvent(new org.apache.flex.events.Event("layoutNeeded")); + thumbContentGroup.dispatchEvent(new org.apache.flex.events.Event("layoutNeeded")); //return the last move to watch return move; }