www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e724a2559c5de8a999d386c0210f8f88a861be37
parent a7d9bf314badc4b8cdfedff48c7076efad1f49f8
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed,  1 May 2013 15:42:46 -0400

I have made the style change and noInheritAttribute change requested in pull #433.

Diffstat:
Munpacked/extensions/MathZoom.js | 10++++++----
Munpacked/jax/element/mml/jax.js | 2+-
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git 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 @@ -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} }