diff --git a/unpacked/extensions/MathZoom.js b/unpacked/extensions/MathZoom.js index cb5e8dcde..3cd66df2f 100644 --- a/unpacked/extensions/MathZoom.js +++ b/unpacked/extensions/MathZoom.js @@ -56,6 +56,11 @@ "background-color":"white", opacity:0, filter:"alpha(opacity=0)" }, + "#MathJax_ZoomFrame": { + position:"relative", display:"inline-block", + height:0, width:0 + }, + "#MathJax_ZoomEventTrap": { position:"absolute", left:0, top:0, "z-index":302, display:"inline-block", border:0, padding:0, margin:0, @@ -135,10 +140,7 @@ var Mw = Math.floor(.85*document.body.clientWidth), Mh = Math.floor(.85*Math.max(document.body.clientHeight,document.documentElement.clientHeight)); var div = HTML.Element( - "span",{ - style: {position:"relative", display:"inline-block", height:0, width:0}, - id:"MathJax_ZoomFrame" - },[ + "span",{id:"MathJax_ZoomFrame"},[ ["span",{id:"MathJax_ZoomOverlay", onmousedown:this.Remove}], ["span",{ id:"MathJax_Zoom", onclick:this.Remove, diff --git a/unpacked/jax/element/mml/jax.js b/unpacked/jax/element/mml/jax.js index 872f8dc94..11b14f11b 100644 --- a/unpacked/jax/element/mml/jax.js +++ b/unpacked/jax/element/mml/jax.js @@ -283,7 +283,7 @@ MathJax.ElementJax.mml.Augment({ var obj = this.inherit; var root = obj; while (obj) { var value = obj[name]; if (value == null && obj.attr) {value = obj.attr[name]} - if (value != null && !obj.noInheritAttribute[name]) { + if (value != null && obj.noInheritAttribute && !obj.noInheritAttribute[name]) { var noInherit = obj.noInherit[this.type]; if (!(noInherit && noInherit[name])) {return value} }