Fix problem with forced linebreaks in SVG mode, and a typo in one of the variable names
This commit is contained in:
parent
028d280a7d
commit
db4640d1f4
File diff suppressed because one or more lines are too long
|
@ -78,10 +78,10 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
|
||||||
|
|
||||||
//
|
//
|
||||||
// Start with a fresh SVG element
|
// 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 = this.SVG();
|
||||||
svg.w = SVG.linebreakWidth;
|
if (SVG.linebreakWidth < SVG.BIGDIMEN) {svg.w = SVG.linebreakWidth}
|
||||||
|
|
||||||
var state = {
|
var state = {
|
||||||
n: 0, Y: 0,
|
n: 0, Y: 0,
|
||||||
|
@ -195,8 +195,8 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
|
||||||
// Add in space for the shift
|
// Add in space for the shift
|
||||||
//
|
//
|
||||||
if (shift) {
|
if (shift) {
|
||||||
if (align === MML.INDENTALIGN.LEFT) {line.x = shift} else
|
if (align === MML.INDENTALIGN.LEFT) {line.x = shift} else
|
||||||
if (align === MMLINDENTALIGN.RIGHT) {line.w += shift; line.r = line.w}
|
if (align === MML.INDENTALIGN.RIGHT) {line.w += shift; line.r = line.w}
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Set the Y offset based on previous depth, leading, and current height
|
// Set the Y offset based on previous depth, leading, and current height
|
||||||
|
|
Loading…
Reference in New Issue
Block a user