Hi all,
I have been using the add_iframe action successfully to add HTML content to my scene. Works great.
https://krpano.com/forum/wbb/inde…&threadID=12516
Code
<action name="add_iframe" type="Javascript">
var iframe = document.createElement("iframe");
iframe.style.position = "absolute";
iframe.style.left = 0;
iframe.style.top = 0;
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.border = 0;
iframe.style.outline = "none";
iframe.src = args[1];
caller.registercontentsize(args[2], args[3]);
caller.sprite.appendChild(iframe);
</action>
Alles anzeigen
However, in Chrome and Edge whenever I click on the hotspot to interact with the web content I get a thin black border around it. On mac my co-worker is getting a blue border. In Firefox neither of us get a border at all.
I have tried many different permutations of CSS
with no success.
Has anyone else come across this and found a way around this border issue?
When I click on and interact with the HTML content the border appears. When I click outside of the HTML and drag the pano the border disappears.
Any insight or help would be greatly appreciated.
Thank you!