Skip to content

Commit 0215470

Browse files
Release v2.8.0
1 parent ff34547 commit 0215470

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ Receive message posted from iFrame with the `parentIFrame.sendMessage()` method.
183183

184184
Function called after iFrame resized. Passes in messageData object containing the **iFrame**, **height**, **width** and the **type** of event that triggered the iFrame to resize.
185185

186+
### scrollCallback
187+
188+
type: function ({x,y})
189+
190+
Called before the page is repositioned after a request from the iFrame, due to ethier an in page link, or a direct request from either [parentIFrame.scrollTo()](#scrolltoxy) or [parentIFrame.scrollToOffset()](#scrolltooffsetxy). If this callback function returns false, it will stop the library from repositioning the page, so that you can implement your own animatied page scrolling instead.
191+
186192

187193
## IFrame Methods
188194

@@ -325,6 +331,7 @@ In lieu of a formal style-guide, take care to maintain the existing coding style
325331

326332
##Version History
327333

334+
* v2.8.0 [#68](https://github.com/davidjbradshaw/iframe-resizer/issues/68) Added support for in page links and scrollCallback function. [#140](https://github.com/davidjbradshaw/iframe-resizer/issues/140) Added listener for *transitionend* event [[Mat Brown](https://github.com/outoftime)]. Added listeners for animation events. Added listener for *deviceorientation* event.
328335
* v2.7.1 [#131](https://github.com/davidjbradshaw/iframe-resizer/issues/131) Fix code that works out position of iFrame on host page.
329336
* v2.7.0 [#129](https://github.com/davidjbradshaw/iframe-resizer/issues/129) Parse data passed to *parentIFrame.sendMessage()* into JSON to allow complex data types to be sent to *messageCallback()*.
330337
* v2.6.5 [#107](https://github.com/davidjbradshaw/iframe-resizer/issues/107) Added Node support for use with Browserify.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iframe-resizer",
3-
"version": "2.7.1",
3+
"version": "2.8.0",
44
"homepage": "https://github.com/davidjbradshaw/iframe-resizer",
55
"authors": [
66
"David J. Bradshaw <dave@bradshaw.net>"

iframeResizer.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"RWD",
1818
"responsive"
1919
],
20-
"version": "2.7.1",
20+
"version": "2.8.0",
2121
"author": {
2222
"name": "David J. Bradshaw",
2323
"email": "davidjbradshaw+github@gmail.com"

js/iframeResizer.contentWindow.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/iframeResizer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iframe-resizer",
3-
"version": "2.7.1",
3+
"version": "2.8.0",
44
"homepage": "https://github.com/davidjbradshaw/iframe-resizer",
55
"authors": [
66
"David J. Bradshaw <dave@bradshaw.net>"

0 commit comments

Comments
 (0)