hellosign-embedded
Advanced tools
Comparing version 1.2.8 to 1.2.9
{ | ||
"name": "hellosign-embedded", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "A JavaScript library required for embedding HelloSign features into your webapp. For more information, see our API documentation at https://www.hellosign.com/api/documentation.", | ||
@@ -5,0 +5,0 @@ "main": "src/embedded.js", |
@@ -488,9 +488,5 @@ /** | ||
// Adjust the iFrame style to fit the whole screen | ||
styles['wrapper']['position'] = 'fixed'; | ||
styles['wrapper']['position'] = 'absolute'; | ||
styles['wrapper']['top'] = '0'; | ||
styles['wrapper']['left'] = '0'; | ||
styles['wrapper']['bottom'] = '0'; | ||
styles['wrapper']['right'] = '0'; | ||
styles['wrapper']['webkitOverflowScrolling'] = 'touch'; | ||
styles['wrapper']['overflow-y'] = 'scroll'; | ||
styles['wrapper']['width'] = mobileDims.widthString; | ||
@@ -523,2 +519,9 @@ styles['wrapper']['height'] = mobileDims.heightString; | ||
this.wrapper.setAttribute('id', 'hsEmbeddedWrapper'); | ||
// Hack. We need this on mobile before we insert the DOM | ||
// element, otherwise the modal appears above the fold | ||
if (this.isMobile) { | ||
window.scrollTo(0, 0); | ||
} | ||
this.container.appendChild(this.wrapper); | ||
@@ -626,2 +629,10 @@ } | ||
if (this.isMobile && !this.isInPage) { | ||
this.fixIframe = function() { | ||
window.scrollTo(0, 0); | ||
}; | ||
this.fixIframe(); | ||
window.addEventListener('scroll', this.fixIframe); | ||
} | ||
// Close the iframe if page fails to initialize within 15 seconds | ||
@@ -628,0 +639,0 @@ if (this.healthCheckTimeoutMs) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75896
1107