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 467fb7c Use requestAnimationFrame in both places
467fb7c is described below
commit 467fb7c1857e336aeed660bf0d5f21eef367d659
Author: Harbs <[email protected]>
AuthorDate: Sun Mar 25 12:35:05 2018 +0300
Use requestAnimationFrame in both places
---
.../src/main/royale/org/apache/royale/core/LayoutManager.as | 10 +++++++++-
1 file changed, 9 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 1af7d44..bbb9f48 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
@@ -79,7 +79,15 @@ package org.apache.royale.core
if(!layoutPending && !measurementPending)
{
layoutPending = true;
- setTimeout(executeLayouts, 0);
+ COMPILE::SWF
+ {
+ setTimeout(executeLayouts, 0);
+ }
+
+ COMPILE::JS
+ {
+ requestAnimationFrame(executeLayouts);
+ }
}
}
static private function executeMeasurements():void
--
To stop receiving notification emails like this one, please contact
[email protected].