diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-03 15:25:47 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-03 15:25:47 +0100 |
| commit | bdc7127adfdb52a79459f13a37c93d367241f434 (patch) | |
| tree | 6a2cd121155b00bd4b43c15fffe7060f890a2375 /src/library/flow.rs | |
| parent | f9d380249295280ebf84900d726c3baca565d511 (diff) | |
Refactor flow, stack and grid layouters a bit
Diffstat (limited to 'src/library/flow.rs')
| -rw-r--r-- | src/library/flow.rs | 6 |
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) |
