Changed size of the ADAL JS iframe solving #150 (#167)

This commit is contained in:
Waldek Mastykarz 2017-03-28 08:05:56 +02:00 committed by Vesa Juvonen
parent 5e3e995528
commit 17753ee571
1 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,7 @@ AuthenticationContext.prototype._saveItemSuper = AuthenticationContext.prototype
AuthenticationContext.prototype.handleWindowCallbackSuper = AuthenticationContext.prototype.handleWindowCallback;
AuthenticationContext.prototype._renewTokenSuper = AuthenticationContext.prototype._renewToken;
AuthenticationContext.prototype.getRequestInfoSuper = AuthenticationContext.prototype.getRequestInfo;
AuthenticationContext.prototype._addAdalFrameSuper = AuthenticationContext.prototype._addAdalFrame;
AuthenticationContext.prototype._getItem = function (key) {
if (this.config.webPartId) {
@ -78,6 +79,12 @@ AuthenticationContext.prototype.getRequestInfo = function (hash) {
return requestInfo;
}
window.AuthenticationContext = function() {
AuthenticationContext.prototype._addAdalFrame = function (iframeId) {
var adalFrame = this._addAdalFrameSuper(iframeId);
adalFrame.style.width = adalFrame.style.height = '106px';
return adalFrame;
}
window.AuthenticationContext = function () {
return undefined;
}