Closed SeeThruHead closed 7 years ago
i think it is related to this https://bugzilla.mozilla.org/show_bug.cgi?id=795520 i am rendering inside an iframe.
Hmm that is really interesting! I haven't noticed any similar issues, so I guess you are on the right track regarding rendering inside an iframe. Would it be possible for you to share a minimal jsfiddle displaying the problem?
I'm going to close this. Please reopen if you have a minimal example that displays the problem.
Please let's reopen this. Here is the example:
https://example-get-computed-style-failing-rybndfgpil.now.sh/ <- failing https://example-get-computed-style-failing-rybndfgpil.now.sh/iframe.html <- what it should be
The content of the iframe As you can see in the console, it logs the contents:
On a hidden iframe
If logs null
in the console.
Thank you for the information, I'll analyze this asap.
No worries. Let me know if I can be of any help.
I have now pushed a fix in the develop branch. Could you try it out?
Did you get any chance to try this out? It seems to work fine for me with the fix in the develop branch.
Fix released in 1.1.12.
Hi! I'm sorry I was out on vacations when this happened. Thanks a lot for fixing it! I will make sure to update soon :)
I'm having an issue using your library in firefox. Seem to be that in my application getComputedStyle(element) inside scroll.js returns null in firefox. I assume this is my fault somehow but am unable to pinpoint how. Was hoping you might have some insight.