commit a3fbae10376ddcebda018b0980853f2af4f7bf6b parent acd5857a9981beb21eb07a95ad4841488c8a73f2 Author: Davide P. Cervone <dpvc@union.edu> Date: Wed, 10 Sep 2014 19:59:34 -0400 fix min width of tables (em's inside are different from em's outside). Diffstat:
| M | unpacked/jax/output/HTML-CSS/autoload/mtable.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/output/HTML-CSS/autoload/mtable.js b/unpacked/jax/output/HTML-CSS/autoload/mtable.js @@ -443,8 +443,8 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { C[LABEL].style.marginRight = C[LABEL].style.marginLeft = HTMLCSS.Em(labelshift); if (indent.indentalign === MML.INDENTALIGN.CENTER) {mw += 4*labelshift + 2*C[LABEL].bbox.w} else if (indent.indentalign !== CALIGN[LABEL]) {mw += 2*labelshift + C[LABEL].bbox.w} - span.style.minWidth = span.bbox.minWidth = - eqn.style.minWidth = eqn.bbox.minWidth = HTMLCSS.Em(Math.max(0,mw+shift)); + span.style.minWidth = span.bbox.minWidth = HTMLCSS.Em(Math.max(0,mw+shift)); + eqn.style.minWidth = eqn.bbox.minWidth = HTMLCSS.Em(Math.max(0,(mw+shift)/HTMLCSS.scale)); } // // Finish the table