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

piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 52ddd8ea99 Fix LoadIndicator by using addSvgElementToWrapper util 
which avoid problems with casting
52ddd8ea99 is described below

commit 52ddd8ea99135e0cebf589ecae78863c231da6af
Author: Piotr Zarzycki <[email protected]>
AuthorDate: Fri Jan 10 12:12:16 2025 +0100

    Fix LoadIndicator by using addSvgElementToWrapper util which avoid problems 
with casting
---
 .../Basic/src/main/royale/org/apache/royale/html/LoadIndicator.as  | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/LoadIndicator.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/LoadIndicator.as
index 9f65490c80..ad663b4f1b 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/LoadIndicator.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/LoadIndicator.as
@@ -20,7 +20,9 @@ package org.apache.royale.html
 {
        
        import org.apache.royale.core.UIBase;
-       COMPILE::JS
+import org.apache.royale.html.util.addSvgElementToWrapper;
+
+COMPILE::JS
        {
                import org.apache.royale.core.WrappedHTMLElement;
        }
@@ -38,6 +40,7 @@ package org.apache.royale.html
        {
                public function LoadIndicator()
                {
+                       super();
                }
                
                COMPILE::JS
@@ -46,7 +49,7 @@ package org.apache.royale.html
                 */
                override protected function createElement():WrappedHTMLElement
                {
-                       element = 
document.createElementNS('http://www.w3.org/2000/svg', 'svg') as 
WrappedHTMLElement;
+                       addSvgElementToWrapper(this, 'svg');
                        element.setAttribute("viewBox", "0 0 135 135");
             // path is from http://samherbert.net/svg-loaders/ available under 
MIT License
                        element.innerHTML = '<path d="M28.19 40.31c6.627 0 
12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 
12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 
0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 
16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 
0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 
12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 [...]

Reply via email to