Giter Club home page Giter Club logo

Comments (16)

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Hi, that is an issue in some browsers, if you don't use the default bodyOffset method. Looking at you options, what happens if you get rid of everything except the checkOrigin one?

Just playing around with some ideas on how to fix this, hope to have something soon.

from iframe-resizer.

michaelflip7 avatar michaelflip7 commented on July 19, 2024

Removing everything other than checkOrigin produces the same results. Also, I switched back to the default bodyOffset for now (I had it set to bodyScroll for no particular reason)

Interestingly enough, it works on my iPad perfectly (sizes down the iFrame perfectly)

EDIT: I should clarify, v2.1.0 worked perfectly using Chrome for iPad, it seems as if the most recent version doesn't work anymore

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Have you tried rolling back to v2.1.0 and seeing if it works on the desktop version? Had a look at your page and something strange seems to making all the different height values return the same value. Never seen that before.

from iframe-resizer.

michaelflip7 avatar michaelflip7 commented on July 19, 2024

Rolled back to v2.1.0 and it worked for the iPad again, but not on the desktop.

It returns an old(same) value whenever the page shrinks, anytime the page grows larger, it reads the proper height with no problems.

The fact it works on mobile devices is really interesting...

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

I think something in your page is adjusting the height of the different elements to fit the window, so that when this script looks them up they are the wrong size. Their are six different ways to measure the height of an iFrame and they normally give different figures, on you page they are all the same.

What other scripts do you have running?

from iframe-resizer.

michaelflip7 avatar michaelflip7 commented on July 19, 2024

To check if there were any other scripts interfering with the resizer, I set up a test page with no other includes other than this (and jquery), located at: http://anycruise.ca/resizertest.html

I'm using all the same settings, and it seems that it still doesn't want to downsize the frame.

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

The issue is the JavaScript in the iFrame, not the host page.

from iframe-resizer.

michaelflip7 avatar michaelflip7 commented on July 19, 2024

ahh, sorry about that.

I have limited access to the iFrame source page. The extent of what I can do is insert code into the header. While it's probably not within the scope of your project, do you have any ideas of what I could do?

Thanks for everything so far!

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

If you send me your email address, I'll send you a beta copy of the next version, that may work around this for you. Hope to have it out next week, want to do some more testing on it first and it would be helpful to test it with this.

from iframe-resizer.

michaelflip7 avatar michaelflip7 commented on July 19, 2024

Sure thing. My email is [email protected]
I'd be happy to help in any way.

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Just sent you an email.

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

PS You will need to set the hightCalculationMethod to max for this to work.

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Try http://davidjbradshaw.com/iframe-resizer/example/test.html.

from iframe-resizer.

FriarBroccoli avatar FriarBroccoli commented on July 19, 2024

flipnotic: You said: "The fact it works on mobile devices is really interesting"

If your code contains media queries you could activate them in all media. If the problem disappears it would help narrow the source of the problem.

from iframe-resizer.

michaelflip7 avatar michaelflip7 commented on July 19, 2024

The latest version (same as in the test page above) works perfectly for me. Thanks a lot!

Just a note; it seems to also throw a JS error:
Uncaught ReferenceError: calleeMsg is not defined iframeResizer.contentWindow.js:393

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Just emailed you an update without that bug. So your not waiting on me to publish this version.

from iframe-resizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.