question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iFrameResizer not working in iOS.

See original GitHub issue

I tried to view my company’s site at http://www.itup.pt but what I get is the following:

ios_safari

The server hosting this already has the most recent version (3.5.1) installed. Here is the javascript we have:

`

        iFrameResize({
            log                     : true,                  // Enable console logging
            enablePublicMethods     : true,                  // Enable methods within iframe hosted page
            resizedCallback         : function(messageData){ // Callback fn when resize is received

            },
            messageCallback         : function(messageData){ // Callback fn when message is received

            },
            closedCallback         : function(id){ // Callback fn when iFrame is closed

            },
            heightCalculationMethod : 'max'
        });


    `

The site displays fine in mobile size in Chrome Windows. If I missed any options I should be using/trying, I would appreciate anyone pointing that out. Any other clues appreciated.

Thanks

Pedro Remedios

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
nishantprajapticommented, Nov 30, 2016

Thank you so much for the help. It really worked for me.

2reactions
abdulrahim-devcommented, Sep 29, 2016

@premedios Thanks, Your solution is working for me.

` var screenWidth = screen.width;

if (browser.iPad) { screenWidth = screenWidth - 300;}

if (browser.iPhone) { screenWidth = screenWidth - 50;  }

S = { ------ maxHeight: 1 / 0, maxWidth: screenWidth, minHeight: 0, minWidth: 0, resizeFrom: “parent”, scrolling: !1, sizeHeight: !0, sizeWidth: true, ------------------ };`

Read more comments on GitHub >

github_iconTop Results From Across the Web

Iframe resizer not working at iphone safari browser · Issue #775
Hello, I am using iframe resizer to embed a from from a site to another and this working at all windows and mac,...
Read more >
Iframe resizer not working at iphone safari browser
I am using iframe resizer to embed a from from a site to another and this working at all windows and mac, but...
Read more >
iFrame Resizer download | SourceForge.net
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 - JavaScripting.com
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 >
wl-iframe-resizer - npm
It provides a range of features to address the most common issues with using iFrames, these include: Height and width resizing of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found