From f1f37e1347ee91896cce5fe6b0ab62f9a6ffb9c5 Mon Sep 17 00:00:00 2001 From: "HHAX\\abaggett" Date: Fri, 30 Oct 2020 16:32:42 -0500 Subject: [PATCH] fixed a bug since css does not control iframe width or height, these must be set directly via width and height properties --- src/CheckSessionIFrame.js | 4 ++-- src/IFrameWindow.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CheckSessionIFrame.js b/src/CheckSessionIFrame.js index 17d83043..3da0aa05 100644 --- a/src/CheckSessionIFrame.js +++ b/src/CheckSessionIFrame.js @@ -22,8 +22,8 @@ export class CheckSessionIFrame { this._frame.style.visibility = "hidden"; this._frame.style.position = "absolute"; this._frame.style.display = "none"; - this._frame.style.width = 0; - this._frame.style.height = 0; + this._frame.width = 0; + this._frame.height = 0; this._frame.src = url; } diff --git a/src/IFrameWindow.js b/src/IFrameWindow.js index 1bbcfed1..fdc2ea48 100644 --- a/src/IFrameWindow.js +++ b/src/IFrameWindow.js @@ -21,8 +21,8 @@ export class IFrameWindow { // shotgun approach this._frame.style.visibility = "hidden"; this._frame.style.position = "absolute"; - this._frame.style.width = 0; - this._frame.style.height = 0; + this._frame.width = 0; + this._frame.height = 0; window.document.body.appendChild(this._frame); }