Giter Club home page Giter Club logo

Comments (5)

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

This I expect is a problem with something on your SharePoint page set to always make the page 17px bigger than the displayed window. Normally this something set to be pinned to the footer with CSS or JS. I expect the problem is with the MasterPage of the child SharePoint page.

The stopInfiniteResizingOfIFrame() just resets the height on the body and html tags to 'auto' as changing this is the most common way for someone to create this problem.

Have you tried changing the heightCalculationMethod? As using a different html property to work out the height may help.

from iframe-resizer.

JBHarris avatar JBHarris commented on August 19, 2024

Yes, I tried all height calculation methods, only 'max' and 'bodyScroll' result in a resize, but both result in infinite scrolling.

I've forked iFrame-Resizer, maybe I will just check before resizing to make sure it is at least 20px bigger than last time before I do a resize.

Thoughts?

Brad

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

I expect that will sort of work, but think it's better to fix your CSS.

from iframe-resizer.

JBHarris avatar JBHarris commented on August 19, 2024

I don't disagree that the CSS might be (probably is) the problem, but it isn't mine to fix. It is pushed down by SharePoint (Office 365 online) and tweaking the CSS is beyond the scope of my allowed sandbox.

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

I expect you can get around the sandbox by tweaking CSS via JS.

Anyway best of luck with it and if you find any magic trick do let me know, so I can include it.

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.