Merge pull request #1462 from dpvc/issue1441

Bubble percentage widths up while line breaking in CHTML.  Resolves issue #1441.
This commit is contained in:
Davide P. Cervone 2016-05-17 11:25:42 -04:00
commit fd223636e0

View File

@ -348,6 +348,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
//
var node = this.CHTMLnodeElement();
line.appendChild(node);
if (this.CHTML.pwidth && !line.style.width) line.style.width = this.CHTML.pwidth;
//
// If it is last, remove right margin
// If it is first, remove left margin