commit bf330af3f746e026fd912c50bc1551d4811e1e76
parent e59f6d648401bf1441d9a75751914b6622b3c5c0
Author: Davide P. Cervone <dpvc@union.edu>
Date: Mon, 24 Aug 2015 13:12:47 -0400
Make sure tables with labels are properly aligned (in case they are in an mrow with other stuff, though they shouldn't be).
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/unpacked/jax/output/CommonHTML/autoload/mtable.js b/unpacked/jax/output/CommonHTML/autoload/mtable.js
@@ -459,6 +459,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
var labels = HTML.Element("mjx-stack");
table.style.display = "inline-table"; if (!table.style.width) table.style.width = "auto";
labels.style.verticalAlign = "top";
+ table.style.verticalAlign = CHTML.Em(state.T-state.B-state.H[0]);
node.style.verticalAlign = "";
if (shift) {
if (indent.indentalign === MML.INDENTALIGN.CENTER) {