diff options
Diffstat (limited to 'library/src/layout/stack.rs')
| -rw-r--r-- | library/src/layout/stack.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/layout/stack.rs b/library/src/layout/stack.rs index d44dcb48..1e956669 100644 --- a/library/src/layout/stack.rs +++ b/library/src/layout/stack.rs @@ -4,6 +4,8 @@ use super::{AlignNode, Spacing}; use crate::prelude::*; /// Arrange content and spacing along an axis. +#[func] +#[capable(Layout)] #[derive(Debug, Hash)] pub struct StackNode { /// The stacking direction. @@ -14,7 +16,7 @@ pub struct StackNode { pub children: Vec<StackChild>, } -#[node(Layout)] +#[node] impl StackNode { fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { Ok(Self { |
