commit 7e52f9edd116effcba801b12eaf470bf8ce25732
parent bfe88a01a2e4b7c3fdeb32df543a1a57561f967a
Author: Davide P. Cervone <dpvc@union.edu>
Date: Wed, 1 Apr 2015 19:11:03 -0400
Make sure we set relative mtable widths when needed.
Diffstat:
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
@@ -356,11 +356,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
//
for (j = 0; j <= J; j++) {
@@ -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