Make sure we set relative mtable widths when needed.

This commit is contained in:
Davide P. Cervone 2015-04-01 19:11:03 -04:00
parent bfe88a01a2
commit 7e52f9edd1

View File

@ -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