summaryrefslogtreecommitdiff
path: root/library/src/math/row.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/math/row.rs')
-rw-r--r--library/src/math/row.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/library/src/math/row.rs b/library/src/math/row.rs
index aa6f76f6..23c9d242 100644
--- a/library/src/math/row.rs
+++ b/library/src/math/row.rs
@@ -87,10 +87,6 @@ impl MathRow {
self.iter().map(MathFragment::width).sum()
}
- pub fn height(&self) -> Abs {
- self.ascent() + self.descent()
- }
-
pub fn ascent(&self) -> Abs {
self.iter().map(MathFragment::ascent).max().unwrap_or_default()
}
@@ -136,8 +132,7 @@ impl MathRow {
rows.pop();
}
- let width = rows.iter().map(|row| row.width()).max().unwrap_or_default();
- let points = alignments(&rows);
+ let AlignmentResult { points, width } = alignments(&rows);
let mut frame = Frame::new(Size::zero());
for (i, row) in rows.into_iter().enumerate() {