Skip to content

Commit

Permalink
Update typical example
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Apr 14, 2015
1 parent e0f0e9e commit 201ce4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ The normal configuration is to have the iFrame resize when the browser window ch

```html
<iframe src="http://anotherdomain.com/frame.content.html" width="100%" scrolling="no"></iframe>
<script>iFrameResize({log:true})</script>
```

Note that scrolling is set to 'no', as older versions of IE don't allow this to be turned off in code and can just slightly add a bit of extra space to the bottom of the content that it doesn't report when it returns the height. If you have problems, check the [troubleshooting](#troubleshooting) section below.
Expand Down Expand Up @@ -337,7 +338,7 @@ iFrameResize( {
minSize:100
});
```
<i>Please set the notes section under [heightCalculationMethod](#heightcalculationmethod) to understand the limitations of the different options.</i>
<i>Please see the notes section under [heightCalculationMethod](#heightcalculationmethod) to understand the limitations of the different options.</i>

### ParentIFrame not found errors
To call methods in the iFrame, you need to set the [enablePublicMethods](#enablepublicmethods) option to **true**. The `parentIFrame` object then becomes available once the iFrame has been initially resized. If you wish to use it during page load you will need to poll for it becoming available.
Expand Down

0 comments on commit 201ce4a

Please sign in to comment.