commit da37204eb23ebb2ff946e1146f303f8b118c53a1
parent cd3a550252bf68eaac3d4b3b61c4319f070ccfcd
Author: Davide P. Cervone <dpvc@union.edu>
Date: Sat, 6 Dec 2014 10:22:01 -0500
Handle moveable limits on munderover. Resolves issue #970.
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js
@@ -814,6 +814,17 @@
MML.munderover.Augment({
toCommonHTML: function (span) {
+ var values = this.getValues("displaystyle","accent","accentunder","align");
+ if (!values.displaystyle && this.data[this.base] != null &&
+ this.data[this.base].CoreMO().Get("movablelimits")) {
+ span = MML.msubsup.prototype.toCommonHTML.call(this,span);
+ //
+ // Change class to msubsup for CSS rules.
+ // ### FIXME: should this be handled via adding another class instead?
+ //
+ span.className = span.className.replace(/munderover/,"msubsup");
+ return span;
+ }
span = this.CHTMLdefaultSpan(span,{childSpans:true, className:"", noBBox:true});
var obox = this.CHTMLbboxFor(this.over),
ubox = this.CHTMLbboxFor(this.under),