Get height and depth for ALL character boxes (so large ops, etc, have correct size, since line-height kills that)

This commit is contained in:
Davide P. Cervone 2015-02-23 12:36:51 -05:00
parent 8f0e833ba6
commit b9c5ff1d81

View File

@ -701,8 +701,8 @@
if (bbox.l === BIGDIMEN) bbox.l = 0;
if (bbox.r === -BIGDIMEN) bbox.r = 0;
// ### FIXME: should these be FONTDATA values?
if (bbox.h < .9) span.firstChild.style.marginTop = CHTML.Em(bbox.h-.9);
if (bbox.d < .25) span.firstChild.style.marginBottom = CHTML.Em(bbox.d-.25);
span.firstChild.style.marginTop = CHTML.Em(bbox.h-.9);
span.firstChild.style.marginBottom = CHTML.Em(bbox.d-.25);
},
CHTMLbboxFor: function (n) {