Giter Club home page Giter Club logo

Comments (11)

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Hi,

Just tried it in Chrome and it seemed to work ok for me. What browser are
you using?

Could you please add the output to the JavaScript console, so I can see
what is happening in your browser.

Dave.

On Tue, Aug 20, 2013 at 7:14 PM, johndellavecchia
[email protected]:

I have a .NET application running in the iframe, but the dynamic content
does not expand the frame height. As soon as I resize the browser it
expands. It seems it is working well, just not with the dynamic resizing
based on the content within the frame:

http://mentalhe.nextmp.net/mobiletest/test.html

Any insight appreciated - thank you for the great plugin.

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

David J. Bradshaw )'( [email protected]

'The people we think are a little weird are the ones who change the world'

  • Simon Sinek

from iframe-resizer.

johndellavecchia avatar johndellavecchia commented on July 19, 2024

Hi Dave - Log is set to true.

Attached are images that show the dynamic content not expanding when engaged, and then when the browser is resized. Notice the height - it is the same page. The dynamic content does not make the iframe resize - it only resizes when you resize the browser window. You see the text cut off in the first screenshot.

screen shot 2013-08-20 at 6 18 19 pm

screen shot 2013-08-20 at 6 19 06 pm

I am working in Safari/Chrome.

John

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Oh now I understand, the problem is that when you dynamically update the page, the resize event does not fire. You need to call window.onresize(); or if you prefer jQuery $(window).trigger('resize'); to fire the event.

Will have have a think of a way to pick that up so you don't need to make the call.

from iframe-resizer.

johndellavecchia avatar johndellavecchia commented on July 19, 2024

Thank you very much. Where do I place the $(window).trigger('resize'); call?

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

After any code that triggers a change in content. However, just been
testing that this morning and I'm not sure how reliable it is. So instead
I'm going to add an option to set an interval timer in the iFrame. Should
have it up later today.

On Wed, Aug 21, 2013 at 11:04 AM, johndellavecchia <[email protected]

wrote:

Thank you very much. Where do I place the $(window).trigger('resize');
call?

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-23007036
.

David J. Bradshaw )'( [email protected]

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Try v0.2.0 and let me know if it fixes this for you.

from iframe-resizer.

johndellavecchia avatar johndellavecchia commented on July 19, 2024

David - Sorry, no change in the window resizing.

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

You need to add interval:250 to the call in the host page. See the updated readme file for details.

from iframe-resizer.

johndellavecchia avatar johndellavecchia commented on July 19, 2024

So sorry for missing that. Works beautifully! Thank you for the customization.

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Just done another update, which has another solution to your problem.

from iframe-resizer.

samirFercios avatar samirFercios commented on July 19, 2024

Hi David,

I have a similar issue. In fact, everything is ok for Firefox and IE but not in Chrome (version 34.0). How I can force/help Chrome to make into account the correct height of my iframe? Actually, the content of my iframe is built dynamically according to the data that I want to show. How I can force your plugin to detect the window resizing in chrome (this is my major problem)?

Thanks in advance for your help.

Regards.

Samir.

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.