Skip to content

Commit ec8b2cf

Browse files
committed
Merge branch 'v2.1-latest' of https://github.com/dpvc/MathJax into v2.1-latest
2 parents f3fe1c0 + 5263c5e commit ec8b2cf

File tree

12 files changed

+26
-18
lines changed

12 files changed

+26
-18
lines changed

config/AM_HTMLorMML-full.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/Accessible-full.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/MML_HTMLorMML-full.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/TeX-AMS-MML_HTMLorMML-full.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/TeX-AMS_HTML-full.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/TeX-MML-AM_HTMLorMML-full.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jax/output/HTML-CSS/autoload/multiline.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jax/output/HTML-CSS/jax.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jax/output/SVG/autoload/multiline.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unpacked/jax/output/HTML-CSS/autoload/multiline.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,13 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
168168
return better;
169169
},
170170
HTMLaddWidth: function (i,info,scanW) {
171-
var span = this.data[i].HTMLspanElement();
172-
scanW += span.bbox.w;
173-
if (span.style.paddingLeft) {scanW += HTMLCSS.unEm(span.style.paddingLeft)}
174-
if (span.style.paddingRight) {scanW += HTMLCSS.unEm(span.style.paddingRight)}
175-
info.W = info.scanW = scanW; info.w = 0;
171+
if (this.data[i]) {
172+
var span = this.data[i].HTMLspanElement();
173+
scanW += span.bbox.w;
174+
if (span.style.paddingLeft) {scanW += HTMLCSS.unEm(span.style.paddingLeft)}
175+
if (span.style.paddingRight) {scanW += HTMLCSS.unEm(span.style.paddingRight)}
176+
info.W = info.scanW = scanW; info.w = 0;
177+
}
176178
return scanW;
177179
},
178180

0 commit comments

Comments
 (0)