diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:54:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-08 11:02:27 +0100 |
| commit | e5eab73374880077971f3f22acbdd3d302877128 (patch) | |
| tree | 07aa926b27032d6bcd82486d664dfd4161ccbd3e /library/src/layout/align.rs | |
| parent | 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (diff) | |
Streamline field names
Diffstat (limited to 'library/src/layout/align.rs')
| -rw-r--r-- | library/src/layout/align.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/src/layout/align.rs b/library/src/layout/align.rs index bd9c60fa..e0df0436 100644 --- a/library/src/layout/align.rs +++ b/library/src/layout/align.rs @@ -20,11 +20,6 @@ use crate::prelude::*; styles.set(Self::ALIGNMENT, aligns); })] pub struct AlignNode { - /// The content to align. - #[positional] - #[required] - pub body: Content, - /// The alignment along both axes. /// /// Possible values for horizontal alignments are: @@ -62,6 +57,11 @@ pub struct AlignNode { #[skip] #[default(Axes::new(GenAlign::Start, GenAlign::Specific(Align::Top)))] pub alignment: Axes<Option<GenAlign>>, + + /// The content to align. + #[positional] + #[required] + pub body: Content, } impl Show for AlignNode { |
