Don't set overlay W/H if it has already been removed (IE8).

This commit is contained in:
Davide P. Cervone 2015-01-26 15:19:18 -05:00
parent 90af9db319
commit 94b7c4243b

View File

@ -251,6 +251,7 @@
},
SetWH: function () {
var overlay = document.getElementById("MathJax_ZoomOverlay");
if (!overlay) return;
overlay.style.display = "none"; // so scrollWidth/Height will be right below
var doc = overlay.scroll_parent || document.documentElement || document.body;
overlay.style.width = doc.scrollWidth + "px";