From db2869a2d30c782215a7a10eb74f795addc0fa6e Mon Sep 17 00:00:00 2001 From: zorkow Date: Tue, 1 Sep 2015 19:08:08 +0100 Subject: [PATCH] Increase in minimum width of source window to fix problem on Chrome. --- unpacked/extensions/MathMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js index 5f9a832d1..f01fec1df 100644 --- a/unpacked/extensions/MathMenu.js +++ b/unpacked/extensions/MathMenu.js @@ -1148,7 +1148,7 @@ var table = w.document.body.firstChild; setTimeout(function () { var H = (w.outerHeight-w.innerHeight)||30, W = (w.outerWidth-w.innerWidth)||30, x, y; - W = Math.max(100,Math.min(Math.floor(.5*screen.width),table.offsetWidth+W+25)); + W = Math.max(140,Math.min(Math.floor(.5*screen.width),table.offsetWidth+W+25)); H = Math.max(40,Math.min(Math.floor(.5*screen.height),table.offsetHeight+H+25)); if (MENU.prototype.msieHeightBug) {H += 35}; // for title bar in XP w.resizeTo(W,H);