From acd5857a9981beb21eb07a95ad4841488c8a73f2 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 9 Sep 2014 20:07:07 -0400 Subject: [PATCH] Use alignment function for mtable with labels as well. --- unpacked/jax/output/SVG/autoload/mtable.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/unpacked/jax/output/SVG/autoload/mtable.js b/unpacked/jax/output/SVG/autoload/mtable.js index 9367e0316..0f72d5a28 100644 --- a/unpacked/jax/output/SVG/autoload/mtable.js +++ b/unpacked/jax/output/SVG/autoload/mtable.js @@ -336,10 +336,9 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { shift += (indent.indentAlign === MML.INDENTALIGN.RIGHT ? -indent: indent); } var eqn = svg; svg = this.SVG(); - eqn.x = shift; svg.w = svg.r = SVG.cwidth; svg.hasIndent = true; + svg.w = svg.r = SVG.cwidth; svg.hasIndent = true; svg.Align(C[LABEL],CALIGN[LABEL],labelshift,0); - svg.Align(eqn,indent.indentalign,0,0); - svg.w = SVG.cwidth; // in case the equation extends past the right + svg.Align(eqn,indent.indentalign,0,0,shift); } this.SVGsaveData(svg);