iframeResize.moveToAnchor() not working (@3.5.4)
See original GitHub issueWhen moveToAnchor() is called from the parent, the iframe is not processing the message.
This method send a messageType :
inPageLink
Then in iframeResizer.contentWindow.js there is no an event for inPageLink … so… nothing happen.
function callFromParent(){
switch (getMessageType()){
case 'reset':
resetFromParent();
break;
case 'resize':
resizeFromParent();
break;
case 'moveToAnchor':
moveToAnchor();
break;
case 'message':
messageFromParent();
break;
case 'pageInfo':
pageInfoFromParent();
break;
default:
if (!isMiddleTier() && !isInitMsg()){
warn('Unexpected message ('+event.data+')');
}
}
}
If i call moveToAnchor() in :
case 'moveToAnchor':
moveToAnchor();
everything works as expected.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
iframe-resizer - npm
This library enables the automatic resizing of the height and width of both same and cross domain iFrames to fit their contained content....
Read more >iframe-resizer js library: moveToAnchor from parent page
Then the (re)sizing of the IFrame seems not to work perfectly and contents at the top of the iframe are getting cut off....
Read more >iframeresize problem - JSFiddle - Code Playground
* Desc: Force iframes to size to content. 5. * Requires: iframeResizer.contentWindow.js to be loaded into the target frame.
Read more >2021年02月_weixin_39956451的博客_CSDN博客
原创 java keystoreapi_Load MSCAPI Java Keystore without loading private keys (hard token). The popup is being activated from the MS-CAPI Cryptographic ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v3.5.5
I confirm, it’s working after your commit. Thanks !