Fix linewidth computation so it respects floating elements on either side

This commit is contained in:
Davide P. Cervone 2011-11-04 21:58:33 -04:00
parent d76580a422
commit 4a68934cd4
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -130,7 +130,7 @@
// Used in preTranslate to get linebreak width // Used in preTranslate to get linebreak width
this.linebreakSpan = HTML.Element("span",null, this.linebreakSpan = HTML.Element("span",null,
[["hr",{style: {width:"100%", size:1, padding:0, border:0, margin:0}}]]); [["hr",{style: {width:"auto", size:1, padding:0, border:0, margin:0}}]]);
// Set up styles // Set up styles
return AJAX.Styles(this.config.styles,["InitializeSVG",this]); return AJAX.Styles(this.config.styles,["InitializeSVG",this]);
@ -237,7 +237,7 @@
test = scripts[i].previousSibling; jax = scripts[i].MathJax.elementJax; test = scripts[i].previousSibling; jax = scripts[i].MathJax.elementJax;
span = test.previousSibling; span = test.previousSibling;
if (!jax.SVG.isHidden) {span = span.previousSibling} if (!jax.SVG.isHidden) {span = span.previousSibling}
span.parentNode.removeChild(span); // span.parentNode.removeChild(span);
test.parentNode.removeChild(test); test.parentNode.removeChild(test);
} }
// //