From using this library, we've hit a fairly edge case in Firefox where attempting to call window.getComputedStyle() inside of an iframe which is currently hidden consistently returns null.
Returning the clientHeight or clientWidth fixes my use case in Firefox without adversely affecting any other browser that I've tested in (IE11+, latest Safari, Chrome).
From using this library, we've hit a fairly edge case in Firefox where attempting to call
window.getComputedStyle()
inside of an iframe which is currently hidden consistently returnsnull
.You can see the issue logged with Mozilla here: https://bugzilla.mozilla.org/show_bug.cgi?id=548397
Returning the
clientHeight
orclientWidth
fixes my use case in Firefox without adversely affecting any other browser that I've tested in (IE11+, latest Safari, Chrome).