www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 2920348bdd20aae97b281f38b0fe42faf8f51a4e
parent ad056abbafb4bcdd6a20d3ffddf2a59471a268a4
Author: Emily Eisenberg <emily@khanacademy.org>
Date:   Fri, 12 Sep 2014 16:27:48 -0700

Fix large integrals in IE 8

IE 8 clips the \int sign when it is `display: inline-block`. This fixes that.

Test plan:
 - Make sure no huxley tests changed

Auditors: alpert

Diffstat:
MbuildTree.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/buildTree.js b/buildTree.js @@ -411,6 +411,10 @@ var groupTypes = { } if (hasLimits) { + // IE 8 clips \int if it is in a display: inline-block. We wrap it + // in a new span so it is an inline, and works. + var base = makeSpan([], [base]); + if (supGroup) { var sup = buildGroup(supGroup, options.withStyle(options.style.sup()));