We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4817368 commit edc2618Copy full SHA for edc2618
unpacked/extensions/MathMenu.js
@@ -314,7 +314,7 @@
314
if (menu.offsetWidth) menu.style.width = (menu.offsetWidth+2) + "px";
315
var x = event.pageX, y = event.pageY;
316
var bbox = document.body.getBoundingClientRect();
317
- var styles = window.getComputedStyle(document.body);
+ var styles = (window.getComputedStyle ? window.getComputedStyle(document.body) : {marginLeft: "0px"});
318
var bodyRight = bbox.right - Math.min(0,bbox.left) + parseFloat(styles.marginLeft);
319
if (!x && !y && "clientX" in event) {
320
x = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
0 commit comments