summaryrefslogtreecommitdiff
path: root/library/src/math/root.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/math/root.rs')
-rw-r--r--library/src/math/root.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/math/root.rs b/library/src/math/root.rs
index d348ecc1..2d27bb11 100644
--- a/library/src/math/root.rs
+++ b/library/src/math/root.rs
@@ -1,5 +1,7 @@
use super::*;
+const MIN_INDEX_SHIFT: Em = Em::new(0.35);
+
/// # Square Root
/// A square root.
///
@@ -126,7 +128,7 @@ fn layout(
if let Some(index) = &index {
sqrt_offset = kern_before + index.width() + kern_after;
- shift_up.set_max(index.descent() + Em::new(0.35).scaled(ctx));
+ shift_up.set_max(index.descent() + MIN_INDEX_SHIFT.scaled(ctx));
ascent.set_max(shift_up + index.ascent());
}