Fix processing error when rowalign has a bad value. Fixes problem reported by Fred in issue #304.
This commit is contained in:
parent
77c65fb333
commit
7aedaa973f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -258,7 +258,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
|
|||
dy = ({top: H[i] - A[i][j].bbox.h,
|
||||
bottom: A[i][j].bbox.d - D[i],
|
||||
center: ((H[i]-D[i]) - (A[i][j].bbox.h-A[i][j].bbox.d))/2,
|
||||
baseline: 0, axis: 0})[align]; // FIXME: handle axis better?
|
||||
baseline: 0, axis: 0})[align] || 0; // FIXME: handle axis better?
|
||||
align = (cell.columnalign||RCALIGN[i][j]||CALIGN[j])
|
||||
HTMLCSS.alignBox(A[i][j],align,y+dy);
|
||||
}
|
||||
|
|
|
@ -243,7 +243,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
|
|||
dy = ({top: H[i] - A[i][j].h,
|
||||
bottom: A[i][j].d - D[i],
|
||||
center: ((H[i]-D[i]) - (A[i][j].h-A[i][j].d))/2,
|
||||
baseline: 0, axis: 0})[align]; // FIXME: handle axis better?
|
||||
baseline: 0, axis: 0})[align] || 0; // FIXME: handle axis better?
|
||||
align = (cell.columnalign||RCALIGN[i][j]||CALIGN[j])
|
||||
C[j].Align(A[i][j],align,0,y+dy);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user