From 8a8a9505cba691f60f3c1f022c508fc884eca376 Mon Sep 17 00:00:00 2001 From: Emily Eisenberg Date: Thu, 22 Aug 2013 17:14:55 -0700 Subject: [PATCH] Fix sizing Make sizing blocks inline-block Auditors: alpert --- buildTree.js | 2 +- static/katex.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/buildTree.js b/buildTree.js index b5f2dcac0..dec2fe6fb 100644 --- a/buildTree.js +++ b/buildTree.js @@ -346,7 +346,7 @@ var groupTypes = { options.withSize(group.value.size), prev); return makeSpan( - ["reset-" + options.size, group.value.size, + ["sizing", "reset-" + options.size, group.value.size, getTypeOfGroup(group.value.value)], [inner]); } diff --git a/static/katex.less b/static/katex.less index f026bd474..9cf742a16 100644 --- a/static/katex.less +++ b/static/katex.less @@ -289,6 +289,8 @@ big parens } } + .sizing { display: inline-block; } + .reset-size5.size1 { font-size: 0.5em; } .reset-size5.size2 { font-size: 0.7em; } .reset-size5.size3 { font-size: 0.8em; }