Skip to content

Commit b6e96d9

Browse files
committed
Properly include centering of large operators in height and depth of mrows (for stretching of operators). resolves issue #1933.
1 parent 1e28a76 commit b6e96d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unpacked/jax/output/SVG/jax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,8 @@
962962
Check: function (data) {
963963
var svg = data.toSVG(); this.svg.push(svg);
964964
if (data.SVGcanStretch("Vertical")) {svg.mml = data}
965-
if (svg.h > this.sh) {this.sh = svg.h}
966-
if (svg.d > this.sd) {this.sd = svg.d}
965+
if (svg.h + svg.y > this.sh) {this.sh = svg.h + svg.y}
966+
if (svg.d - svg.y > this.sd) {this.sd = svg.d - svg.y}
967967
},
968968
Stretch: function () {
969969
for (var i = 0, m = this.svg.length; i < m; i++)

0 commit comments

Comments
 (0)