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/28 08:00:04 UTC
[royale-asjs] 01/04: 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 adg_grouped
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit aaa03633fca805f232276d8c6ea751ce7139b2c7
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 7caee4f..fe41889 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);
}
}