www

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

commit 0b00aceae229ae50f2132cc13ffeecb96711f824
parent e78c9d4ccb406120a838625f66a62a5e9e4fe85c
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Fri, 11 Dec 2015 16:14:16 -0500

Merge branch 'issue1235' into develop.  Issue #1235.

Diffstat:
Munpacked/extensions/AssistiveMML.js | 15+++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/unpacked/extensions/AssistiveMML.js b/unpacked/extensions/AssistiveMML.js @@ -36,6 +36,7 @@ styles: { ".MJX_Assistive_MathML": { position:"absolute!important", + top: 0, left: 0, clip: (HUB.Browser.isMSIE && (document.documentMode||0) < 8 ? "rect(1px 1px 1px 1px)" : "rect(1px, 1px, 1px, 1px)"), padding: "1px 0 0 0!important", @@ -44,6 +45,9 @@ width: "1px!important", overflow: "hidden!important", display:"block!important" + }, + ".MJX_Assistive_MathML.MJX_Assistive_MathML_Block": { + width: "100%!important" } } }, @@ -94,11 +98,14 @@ return MathJax.Callback.After(["HandleMML",this,state],err.restart); } frame.setAttribute("data-mathml",mml); - span = HTML.addElement(frame,"span",{ - isMathJax: true, className: "MJX_Assistive_MathML" + span = HTML.addElement(frame,"span",{ + isMathJax: true, + className: "MJX_Assistive_MathML" + + (jax.root.Get("display") === "block" ? " MJX_Assistive_MathML_Block" : "") }); - span.innerHTML = mml; - frame.setAttribute("role", "presentation"); + span.innerHTML = mml; + frame.style.position = "relative"; + frame.setAttribute("role", "presentation"); frame.firstChild.setAttribute("aria-hidden","true"); span.setAttribute("role", "presentation"); }