AuthenticationService.prototype.applyStyles = function (iframe) {
iframe.style.position = 'fixed';
iframe.style.top = '0';
iframe.style.left = '0';
iframe.style.height = '100%';
iframe.style.width = '100%';
iframe.setAttribute('frameborder', '0');
iframe.setAttribute('allowTransparency', 'true');
iframe.style.border = '0';
iframe.style.zIndex = '99999';
};Some extra mobile-specific things hiding scrollbars of the body:
AuthenticationService.prototype.lockMerchantWindowSize = function () {
htmlNode.style.overflow = 'hidden';
bodyNode.style.overflow = 'hidden';
bodyNode.style.height = '100%';
};
AuthenticationService.prototype.unlockMerchantWindowSize = function () {
var defaultStyles = this.merchantPageDefaultStyles;
bodyNode.style.height = defaultStyles.body.height;
bodyNode.style.overflow = defaultStyles.body.overflow;
htmlNode.style.overflow = defaultStyles.html.overflow;
};