commit d2620501da3b58d692534601c89915acfd797a88
parent 46ba400ad6e8783d2e4df5bece6d51cbbd5c5e74
Author: Davide P. Cervone <dpvc@union.edu>
Date: Fri, 11 Apr 2014 07:36:40 -0400
Get border size properly in IE < 10.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unpacked/extensions/MathZoom.js b/unpacked/extensions/MathZoom.js
@@ -154,7 +154,7 @@
var zoom = div.lastChild, span = zoom.firstChild, overlay = div.firstChild;
math.parentNode.insertBefore(div,math); math.parentNode.insertBefore(math,div); // put div after math
if (span.addEventListener) {span.addEventListener("mousedown",this.Remove,true)}
- var eW = zoom.offsetWidth; Mw -= eW; Mh -= eW;
+ var eW = zoom.offsetWidth || zoom.clientWidth; Mw -= eW; Mh -= eW;
zoom.style.maxWidth = Mw+"px"; zoom.style.maxHeight = Mh+"px";
if (this.msieTrapEventBug) {