From 2dd603aa418c3e42c95310f19f1070b5fb84a37c Mon Sep 17 00:00:00 2001 From: CalebKester Date: Thu, 16 Jul 2015 08:44:52 -0500 Subject: [PATCH] Update MathZoom.js with global border-box support With a lot of sites using the global box-sizing it breaks the zoom box on large equations when the zoom goes wider than the screen. This fix will explicitly add content-box on this element to prevent a global override. --- unpacked/extensions/MathZoom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unpacked/extensions/MathZoom.js b/unpacked/extensions/MathZoom.js index 59060c00c..aad3099fa 100644 --- a/unpacked/extensions/MathZoom.js +++ b/unpacked/extensions/MathZoom.js @@ -40,6 +40,9 @@ "text-align":"left", "text-indent":0, "text-transform":"none", "line-height":"normal", "letter-spacing":"normal", "word-spacing":"normal", "word-wrap":"normal", "white-space":"nowrap", "float":"none", + "-webkit-box-sizing":"content-box", // Android ≤ 2.3, iOS ≤ 4 + "-moz-box-sizing":"content-box", // Firefox ≤ 28 + "box-sizing":"content-box", // Chrome, Firefox 29+, IE 8+, Opera, Safari 5.1 "box-shadow":"5px 5px 15px #AAAAAA", // Opera 10.5 and IE9 "-webkit-box-shadow":"5px 5px 15px #AAAAAA", // Safari 3 and Chrome "-moz-box-shadow":"5px 5px 15px #AAAAAA", // Forefox 3.5