Fix incorrect index in mtable (issue #468 wasn't fixed for SVG), and make bounding box information correct for stretched character. Resolves issue #619.
This commit is contained in:
parent
86792eaf44
commit
b85d23d9a5
|
@ -72,8 +72,8 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
|
|||
HD = mo.SVGdata.h + mo.SVGdata.d;
|
||||
if (HD) {
|
||||
min = SVG.length2em(min,mu,HD);
|
||||
if (min*mo.SVGdata.h/HD > H[j]) {H[j] = min*mo.SVGdata.h/HD}
|
||||
if (min*mo.SVGdata.d/HD > D[j]) {D[j] = min*mo.SVGdata.d/HD}
|
||||
if (min*mo.SVGdata.h/HD > H[i]) {H[i] = min*mo.SVGdata.h/HD}
|
||||
if (min*mo.SVGdata.d/HD > D[i]) {D[i] = min*mo.SVGdata.d/HD}
|
||||
}
|
||||
} else if (mo.SVGcanStretch("Horizontal")) {
|
||||
min = SVG.length2em(min,mu,mo.SVGdata.w);
|
||||
|
|
|
@ -1039,6 +1039,7 @@
|
|||
if (!this.SVGdata) {this.SVGdata = {}}
|
||||
this.SVGdata.w = svg.w, this.SVGdata.x = svg.x;
|
||||
this.SVGdata.h = svg.h, this.SVGdata.d = svg.d;
|
||||
if (svg.y) {this.SVGdata.h += svg.y; this.SVGdata.d -= svg.y}
|
||||
if (svg.X != null) {this.SVGdata.X = svg.X}
|
||||
if (this["class"]) {svg.removeable = false; SVG.Element(svg.element,{"class":this["class"]})}
|
||||
// FIXME: if an element is split by linebreaking, the ID will be the same on both parts
|
||||
|
|
Loading…
Reference in New Issue
Block a user