You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2018/03/24 23:57:55 UTC

[royale-asjs] branch feature/layout-optimization updated: Added ASDoc

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

harbs pushed a commit to branch feature/layout-optimization
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/layout-optimization by this push:
     new 750909e  Added ASDoc
750909e is described below

commit 750909e2f01c10a038a92512dbe4eb7a994cabea
Author: Harbs <ha...@in-tools.com>
AuthorDate: Sun Mar 25 02:57:48 2018 +0300

    Added ASDoc
---
 .../royale/org/apache/royale/core/LayoutManager.as | 24 +++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/LayoutManager.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/LayoutManager.as
index ce6b8ad..1af7d44 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/LayoutManager.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/LayoutManager.as
@@ -23,12 +23,27 @@ package org.apache.royale.core
         import flash.utils.setTimeout;
     }
     import org.apache.royale.utils.measureComponent;
-
+    /**
+     * The LayoutManager class is an all static class which allows queing
+     * up measuring of components and layouts to prevent layout thrashing
+     * @langversion 3.0
+     * @playerversion Flash 10.2
+     * @playerversion AIR 2.6
+     * @productversion Royale 0.9.3
+     */
     public class LayoutManager
     {
         static private var layoutPending:Boolean;
         static private var measurementPending:Boolean;
         static private var measurements:Array = [];
+        /**
+         * Add a component to be measured during the next cycle.
+         * The queued layouts are automatically run after all components are measured.
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.9.3
+         */
         static public function addMeasurement(component:ILayoutChild):void
         {
             measurements.push(component);
@@ -51,6 +66,13 @@ package org.apache.royale.core
             }
         }
         static private var pendingLayouts:Array = [];
+        /**
+         * Add a function to be called during the next group of layouts.
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.9.3
+         */
         static public function addLayout(callback:Function):void
         {
             pendingLayouts.push(callback);

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