Skip to content
Snippets Groups Projects
Commit fcb6b320 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Hiding the iFrame to avoid scrolling to bottom of page on Firefox (and possibly other browsers)

parent d2277068
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ CrossDomainStorage.prototype = {
if (!this._iframe){
if (window.postMessage && window.JSON && window.localStorage){
this._iframe = document.createElement("iframe");
this._iframe.style.cssText = "position:absolute;width:1px;height:1px;left:-9999px;";
this._iframe.style.cssText = "display:none;position:absolute;width:1px;height:1px;left:-9999px;";
document.body.appendChild(this._iframe);
if (window.addEventListener){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment