Jump to content
Search Community

Firefox window.getComputedStyle() returns null inside an iframe with display: none

George Dion test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

When i use firefox to use tweenmax on an jquery object that is currently display:none (and iframe's parent is display:none) i get the following error:

TypeError: _getComputedStyle(...) is null TweenMax.js:3874:37
 

To make it work i changed the code of TweenMax.js (1.20.2) line 3874 to:

if (_transformProp && ((none = (_getComputedStyle(e) == null || _getComputedStyle(e).display === "none")) || !e.parentNode)) {

 

Related firefox bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=548397

 

Is there anything i am missing? I do not want to change the TweenMax library to make my site work.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...