hellosign-embedded
Advanced tools
Comparing version 1.2.5 to 1.2.7
{ | ||
"name": "hellosign-embedded", | ||
"version": "1.2.5", | ||
"version": "1.2.7", | ||
"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", |
@@ -5,3 +5,3 @@ # hellosign-embedded [![Build Status](https://travis-ci.org/HelloFax/hellosign-embedded.svg?branch=master)](https://travis-ci.org/HelloFax/hellosign-embedded) | ||
##Getting started | ||
## Getting started | ||
@@ -14,3 +14,3 @@ You can include this library in your projects in one of three ways: | ||
###NPM | ||
### NPM | ||
You can require the hellosign-embedded package in your front-end code when using a bundler like [browserify](http://browserify.org/) or [webpack](https://webpack.github.io/). | ||
@@ -48,3 +48,3 @@ | ||
###Building from source | ||
### Building from source | ||
You'll need to clone this repository, and have [npm](http://blog.npmjs.org/post/85484771375/how-to-install-npm) and [webpack](https://webpack.github.io/) installed. | ||
@@ -69,3 +69,3 @@ From your command line, run | ||
##Usage | ||
## Usage | ||
@@ -89,3 +89,3 @@ Basic usage of hellosign-embedded requires initializing the library, then using the `HelloSign.open` function to open a URL you've fetched through the [HelloSign API](https://www.hellosign.com/api) in an iFrame on your page. | ||
##Tests | ||
## Tests | ||
@@ -95,3 +95,3 @@ The current test suite can be run with `npm tests`. | ||
##Demo | ||
## Demo | ||
There is a demo app available in this repo, useful for both development against this repo, and examining how a simple integration can work. | ||
@@ -98,0 +98,0 @@ |
@@ -472,2 +472,13 @@ /** | ||
styles['cancelButton']['display'] = 'none'; | ||
// This is an iOS hack. Apparently iOS ignores widths set | ||
// with a non-pixel value, which means iFrames get expanded | ||
// to the full width of their content. Setting a pixel | ||
// value and then using `min-width` is the workaround for | ||
// this. | ||
// See: http://stackoverflow.com/questions/23083462/how-to-get-an-iframe-to-be-responsive-in-ios-safari | ||
if (this.isMobile) { | ||
styles['iframe']['width'] = '1px'; | ||
styles['iframe']['min-width'] = '100%'; | ||
} | ||
} | ||
@@ -609,3 +620,3 @@ else if (this.isMobile) { | ||
if (this.isMobile) { | ||
if (this.isMobile && !this.isInPage) { | ||
this.fixIframe = function() { | ||
@@ -612,0 +623,0 @@ window.scrollTo(0, 0); |
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
75536
1101