You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/12/30 00:35:51 UTC

[royale-asjs] 08/13: set svg to absolute. The parent should be absolute already

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 5078e6bca460f25d36a8ec1b1e48fc90d1d622a9
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Dec 27 23:58:28 2019 -0800

    set svg to absolute.  The parent should be absolute already
---
 frameworks/projects/MXRoyale/src/main/royale/mx/display/Graphics.as | 1 +
 1 file changed, 1 insertion(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/display/Graphics.as b/frameworks/projects/MXRoyale/src/main/royale/mx/display/Graphics.as
index 842564e..f8fb72d 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/display/Graphics.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/display/Graphics.as
@@ -64,6 +64,7 @@ package mx.display
                 svg = document.createElementNS("http://www.w3.org/2000/svg", "svg") as HTMLElement;
                 svg.setAttribute("width", displayObject.width.toString() + "px");
                 svg.setAttribute("height", displayObject.height.toString() + "px");
+                svg.style.position = "absolute";
                 element.appendChild(svg);
             }
         }