Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Dec 22, 2014
1 parent b507720 commit d334649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ Not having a valid [HTML document type](http://en.wikipedia.org/wiki/Document_ty
```

###IFrame not resizing
The most common cause of this is not placing the ([iframeResizer.contentWindow.min.js](https://raw.github.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js)) script inside the iFramed page. If the other page is on a domain outside your control and you can not add JavaScript to that page. Now is the time to give up all hope of ever getting the iFrame to size to the content; As it is impossible to work out the size of the contained page, without using JavaScript on both the parent and child pages.
The most common cause of this is not placing the [iframeResizer.contentWindow.min.js](https://raw.github.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js) script inside the iFramed page. If the other page is on a domain outside your control and you can not add JavaScript to that page, then now is the time to give up all hope of ever getting the iFrame to size to the content. As it is impossible to work out the size of the contained page, without using JavaScript on both the parent and child pages.

###IFrame not detecting CSS :hover events
If your page resizes via CSS `:hover` events, these won't be detect by default. It is however possible to create `mouseover` and `mouseout` event listeners on the elements that are resized via CSS and have these events call the [parentIFrame.size()](##parentiframesize-customheight-customwidth) method. With jQuery this can be done as follows, once you have set the [enablePublicMethods](#enablepublicmethods) option to **true**.
Expand Down

0 comments on commit d334649

Please sign in to comment.