We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 214a230 commit ad0d776Copy full SHA for ad0d776
unpacked/jax/output/HTML-CSS/jax.js
@@ -1201,7 +1201,14 @@
1201
},
1202
alignBox: function (span,align,y) {
1203
this.placeBox(span,0,y); // set y position (and left aligned)
1204
- if (this.msiePlaceBoxBug) {span.removeChild(span.lastChild.previousSibling)}
+ if (this.msiePlaceBoxBug) {
1205
+ //
1206
+ // placeBox() adds an extra , so remove it here.
1207
1208
+ var node = span.lastChild;
1209
+ while (node && node.nodeName !== "#text") {node = node.previousSibling}
1210
+ if (node) {span.removeChild(node)}
1211
+ }
1212
var bbox = span.bbox; if (bbox.isMultiline) return;
1213
var isRelative = bbox.width != null && !bbox.isFixed;
1214
var r = 0, c = -bbox.w/2, l = "50%";
0 commit comments