We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3cb3fe commit 75ccfe3Copy full SHA for 75ccfe3
inst/www/shared/shiny.js
@@ -35,8 +35,9 @@
35
if (el.currentStyle)
36
x = el.currentStyle[styleProp];
37
else if (window.getComputedStyle) {
38
- // On some browsers, getComputedStyle can return null for elements that
39
- // aren't visible; don't attempt to retrieve style props in this case.
+ // getComputedStyle can return null when we're inside a hidden iframe on
+ // Firefox; don't attempt to retrieve style props in this case.
40
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=548397
41
var style = document.defaultView.getComputedStyle(el, null);
42
if (style)
43
x = style.getPropertyValue(styleProp);
0 commit comments