Test plan:
 - `npm test`

Auditors: alpert
This commit is contained in:
Emily Eisenberg 2015-04-22 15:33:26 -07:00
parent c48de165e8
commit eef108b2dd

View File

@ -826,12 +826,12 @@ var groupTypes = {
[root]); [root]);
// Figure out the height and depth of the inner part // Figure out the height and depth of the inner part
var innerHeight = Math.max(delim.height, body.height); var innerRootHeight = Math.max(delim.height, body.height);
var innerDepth = Math.max(delim.depth, body.depth); var innerRootDepth = Math.max(delim.depth, body.depth);
// The amount the index is shifted by. This is taken from the TeX // The amount the index is shifted by. This is taken from the TeX
// source, in the definition of `\r@@t`. // source, in the definition of `\r@@t`.
var toShift = 0.6 * (innerHeight - innerDepth); var toShift = 0.6 * (innerRootHeight - innerRootDepth);
// Build a VList with the superscript shifted up correctly // Build a VList with the superscript shifted up correctly
var rootVList = buildCommon.makeVList( var rootVList = buildCommon.makeVList(