diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-08 15:01:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-08 15:01:55 +0200 |
| commit | 977ac77e6a3298be2644a8231e93acbef9f7f396 (patch) | |
| tree | 9c40765b862bc583275f692113fe36924c323ccc /src/eval/layout.rs | |
| parent | e1d7edb7c1845e6df6f5e23e3baf7bc88159eade (diff) | |
Start & end alignment
Diffstat (limited to 'src/eval/layout.rs')
| -rw-r--r-- | src/eval/layout.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/layout.rs b/src/eval/layout.rs index 9bf44194..09b69253 100644 --- a/src/eval/layout.rs +++ b/src/eval/layout.rs @@ -5,7 +5,7 @@ use std::fmt::{self, Debug, Formatter}; use std::hash::Hash; use std::sync::Arc; -use super::{Barrier, StyleChain}; +use super::{Barrier, RawAlign, StyleChain}; use crate::diag::TypResult; use crate::frame::{Element, Frame, Geometry, Shape, Stroke}; use crate::geom::{ @@ -182,7 +182,7 @@ impl LayoutNode { } /// Set alignments for this node. - pub fn aligned(self, aligns: Spec<Option<Align>>) -> Self { + pub fn aligned(self, aligns: Spec<Option<RawAlign>>) -> Self { if aligns.any(Option::is_some) { AlignNode { aligns, child: self }.pack() } else { |
