HTML canvas resize effects iframe placement.
My question is...
Is there a way to have the iframe say in place with an anchor point or have the iframe move correctly on the canvas when the canvas is resized?
The code I am using is the following:
root.embedVideo(embedURL, "video-popup", {position: 'absolute', left: (canvas.width - 170) * 0.5 + 'px', top: (canvas.height - 350) * 0.5 + 'px'});
I have attempted to use "relative" and "absolute" in the code with no luck.
The issue is with the page is resizing, Any resizing outside of the canvas dimensions causes the iframe to get pushed to the lower right of the canvas. (image attached)
Thank you for your time.
