I have made the style change and noInheritAttribute change requested in pull #433.
This commit is contained in:
parent
a7d9bf314b
commit
e724a2559c
|
@ -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,
|
||||
|
|
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user