Giter Club home page Giter Club logo

Comments (9)

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

Cool do you want to send me a pull request with the fix.

from iframe-resizer.

Scotis avatar Scotis commented on August 19, 2024

Yes - I can do that later today...

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

Thanks, now that I'm back home I'm wondering if it could that be reduced down to.

retVal = document.defaultView.getComputedStyle(el, null);
retVal = (null !== retVal) ? retVal[prop] : 0;

from iframe-resizer.

Scotis avatar Scotis commented on August 19, 2024

Yeah - that is probably better. Would you like me to update the pull request?

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

Yeah why not.

Also do you fancy writing a qUnit test for this?

from iframe-resizer.

Scotis avatar Scotis commented on August 19, 2024

Ok pull request has been updated. I haven't written a qUnit test before... is it easy to learn how?

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

Yeah it's pretty straight forward, have a look at the html files in the test folder for some examples, the _init.html is the simplest one.

I think you could strip that back to the first assertion that test it got a message back and the create a new iframe contents html page in the resource folder with a simple version of the page that was creating the problem.

Once you've done that you can just run 'grunt' and it will automagically run the test along with all the other ones.

from iframe-resizer.

Scotis avatar Scotis commented on August 19, 2024

Hmm ok I'll look into it...

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

Thanks.

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.