Make sure we set relative mtable widths when needed.
This commit is contained in:
parent
bfe88a01a2
commit
7e52f9edd1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user