summaryrefslogtreecommitdiff
path: root/src/library/flow.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-03 15:25:47 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-03 15:25:47 +0100
commitbdc7127adfdb52a79459f13a37c93d367241f434 (patch)
tree6a2cd121155b00bd4b43c15fffe7060f890a2375 /src/library/flow.rs
parentf9d380249295280ebf84900d726c3baca565d511 (diff)
Refactor flow, stack and grid layouters a bit
Diffstat (limited to 'src/library/flow.rs')
-rw-r--r--src/library/flow.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/library/flow.rs b/src/library/flow.rs
index 38f1b0e7..227a7a35 100644
--- a/src/library/flow.rs
+++ b/src/library/flow.rs
@@ -190,11 +190,7 @@ impl<'a> FlowLayouter<'a> {
let aligns = Spec::new(
// For non-expanding paragraphs it is crucial that we align the
// whole paragraph as it is itself aligned.
- if node.is::<ParNode>() {
- styles.get(ParNode::ALIGN)
- } else {
- Align::Left
- },
+ styles.get(ParNode::ALIGN),
// Vertical align node alignment is respected by the flow node.
node.downcast::<AlignNode>()
.and_then(|aligned| aligned.aligns.y)