Fix problem with forced linebreaks in SVG mode, and a typo in one of the variable names

This commit is contained in:
Davide P. Cervone 2012-02-04 17:33:31 -05:00
parent 028d280a7d
commit db4640d1f4
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -78,10 +78,10 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
//
// Start with a fresh SVG element
// and make it full width
// and make it full width if we are breaking to a specific width
//
svg = this.SVG();
svg.w = SVG.linebreakWidth;
if (SVG.linebreakWidth < SVG.BIGDIMEN) {svg.w = SVG.linebreakWidth}
var state = {
n: 0, Y: 0,
@ -195,8 +195,8 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
// Add in space for the shift
//
if (shift) {
if (align === MML.INDENTALIGN.LEFT) {line.x = shift} else
if (align === MMLINDENTALIGN.RIGHT) {line.w += shift; line.r = line.w}
if (align === MML.INDENTALIGN.LEFT) {line.x = shift} else
if (align === MML.INDENTALIGN.RIGHT) {line.w += shift; line.r = line.w}
}
//
// Set the Y offset based on previous depth, leading, and current height