From 7e52f9edd116effcba801b12eaf470bf8ce25732 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 1 Apr 2015 19:11:03 -0400 Subject: [PATCH] Make sure we set relative mtable widths when needed. --- unpacked/jax/output/CommonHTML/autoload/mtable.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/autoload/mtable.js b/unpacked/jax/output/CommonHTML/autoload/mtable.js index fbba76808..59da84aea 100644 --- a/unpacked/jax/output/CommonHTML/autoload/mtable.js +++ b/unpacked/jax/output/CommonHTML/autoload/mtable.js @@ -355,11 +355,6 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { // if (setWidths) { if (relWidth) { - // - // Set variable width on DOM nodes - // - this.CHTML.pwidth = values.width; this.CHTML.mwidth = CHTML.Em(TW); - node.style.width = node.firstChild.style.width = "100%"; // // Attach appropriate widths to the columns // @@ -401,6 +396,13 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { W[LABEL] = state.W[LABEL]; state.W = W; state.R = TW; + // + // Set variable width on DOM nodes + // + if (relWidth) { + this.CHTML.pwidth = values.width; this.CHTML.mwidth = CHTML.Em(TW); + node.style.width = node.firstChild.style.width = "100%"; + } }, // // Stretch any cells that can be stretched