diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-08 19:46:06 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-08 19:46:06 +0100 |
| commit | 495b525694aa5901385f3acad043b4a9f3ebb911 (patch) | |
| tree | 36be972fb666b61309b7538335de1a7313c46c8f /library/src/layout/align.rs | |
| parent | e6857f810e8868d95ebe78753568016b6dea12ca (diff) | |
Naming consistency
Diffstat (limited to 'library/src/layout/align.rs')
| -rw-r--r-- | library/src/layout/align.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/layout/align.rs b/library/src/layout/align.rs index d7f571cb..ae60b4c6 100644 --- a/library/src/layout/align.rs +++ b/library/src/layout/align.rs @@ -7,7 +7,7 @@ pub struct AlignNode { /// How to align the content horizontally and vertically. pub aligns: Axes<Option<GenAlign>>, /// The content to be aligned. - pub child: Content, + pub body: Content, } #[node(Layout)] @@ -22,7 +22,7 @@ impl AlignNode { } } - Ok(body.aligned(aligns)) + Ok(Self { aligns, body }.pack()) } } @@ -44,7 +44,7 @@ impl Layout for AlignNode { } // Layout the child. - let mut fragment = self.child.layout(vt, styles.chain(&map), pod)?; + let mut fragment = self.body.layout(vt, styles.chain(&map), pod)?; for (region, frame) in regions.iter().zip(&mut fragment) { // Align in the target size. The target size depends on whether we // should expand. |
