Fix depth of stack when underscript depth is negative.

This commit is contained in:
Davide P. Cervone 2015-03-04 17:10:04 -05:00
parent f3fdb12f8c
commit 0ba42d10b0

View File

@ -1165,6 +1165,14 @@
]);
node.firstChild.firstChild.firstChild.appendChild(stack);
node.firstChild.lastChild.appendChild(under);
if (ubox.d < 0) {
//
// For negative depths, set the height and align to top
// in order to avoid extra baseline space
//
under.firstChild.style.verticalAlign = "top";
under.style.height = ubox.h+ubox.d;
}
//
// determine the spacing
//