Make sure that <mo> with minsize or maxsize set are stretched.
This commit is contained in:
parent
7f509db1b5
commit
462be1eaeb
|
@ -1687,7 +1687,7 @@
|
||||||
var h = span.bbox.h, d = span.bbox.d, stretched = false;
|
var h = span.bbox.h, d = span.bbox.d, stretched = false;
|
||||||
for (i = 0, m = stretchy.length; i < m; i++) {
|
for (i = 0, m = stretchy.length; i < m; i++) {
|
||||||
var bbox = stretchy[i].HTMLspanElement().bbox;
|
var bbox = stretchy[i].HTMLspanElement().bbox;
|
||||||
if (bbox.h !== h || bbox.d !== d)
|
if (stretchy[i].forceStretch || bbox.h !== h || bbox.d !== d)
|
||||||
{stretchy[i].HTMLstretchV(span,h,d); stretched = true}
|
{stretchy[i].HTMLstretchV(span,h,d); stretched = true}
|
||||||
}
|
}
|
||||||
if (stretched) {this.HTMLcomputeBBox(span,true)}
|
if (stretched) {this.HTMLcomputeBBox(span,true)}
|
||||||
|
@ -2204,7 +2204,9 @@
|
||||||
else if (under && this === under.CoreMO() && parent.Get("accentunder")) {c = HTMLCSS.FONTDATA.REMAPACCENTUNDER[c]||c}
|
else if (under && this === under.CoreMO() && parent.Get("accentunder")) {c = HTMLCSS.FONTDATA.REMAPACCENTUNDER[c]||c}
|
||||||
}
|
}
|
||||||
c = HTMLCSS.FONTDATA.DELIMITERS[c.charCodeAt(0)];
|
c = HTMLCSS.FONTDATA.DELIMITERS[c.charCodeAt(0)];
|
||||||
return (c && c.dir == direction.substr(0,1));
|
var stretch = (c && c.dir === direction.substr(0,1));
|
||||||
|
this.forceStretch = (stretch && (this.Get("minsize",true) || this.Get("maxsize",true)));
|
||||||
|
return stretch;
|
||||||
},
|
},
|
||||||
HTMLstretchV: function (box,h,d) {
|
HTMLstretchV: function (box,h,d) {
|
||||||
this.HTMLremoveColor();
|
this.HTMLremoveColor();
|
||||||
|
|
|
@ -904,7 +904,7 @@
|
||||||
{
|
{
|
||||||
var svg = this.svg[i], mml = svg.mml;
|
var svg = this.svg[i], mml = svg.mml;
|
||||||
if (mml) {
|
if (mml) {
|
||||||
if (mml.SVGdata.h !== this.sh || mml.SVGdata.d !== this.sd) {
|
if (mml.forceStretch || mml.SVGdata.h !== this.sh || mml.SVGdata.d !== this.sd) {
|
||||||
svg = mml.SVGstretchV(this.sh,this.sd);
|
svg = mml.SVGstretchV(this.sh,this.sd);
|
||||||
}
|
}
|
||||||
mml.SVGdata.HW = this.sh; mml.SVGdata.D = this.sd;
|
mml.SVGdata.HW = this.sh; mml.SVGdata.D = this.sd;
|
||||||
|
@ -1466,6 +1466,7 @@
|
||||||
c = SVG.FONTDATA.DELIMITERS[c.charCodeAt(0)];
|
c = SVG.FONTDATA.DELIMITERS[c.charCodeAt(0)];
|
||||||
var can = (c && c.dir == direction.substr(0,1));
|
var can = (c && c.dir == direction.substr(0,1));
|
||||||
if (!can) {delete this.svg}
|
if (!can) {delete this.svg}
|
||||||
|
this.forceStretch = can && (this.Get("minsize",true) || this.Get("maxsize",true));
|
||||||
return can;
|
return can;
|
||||||
},
|
},
|
||||||
SVGstretchV: function (h,d) {
|
SVGstretchV: function (h,d) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user