summaryrefslogtreecommitdiff
path: root/library/src/layout/place.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/layout/place.rs')
-rw-r--r--library/src/layout/place.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/layout/place.rs b/library/src/layout/place.rs
index 28d231b7..4c9c0a46 100644
--- a/library/src/layout/place.rs
+++ b/library/src/layout/place.rs
@@ -1,10 +1,12 @@
use crate::prelude::*;
/// Place content at an absolute position.
+#[func]
+#[capable(Layout, Behave)]
#[derive(Debug, Hash)]
pub struct PlaceNode(pub Content, bool);
-#[node(Layout, Behave)]
+#[node]
impl PlaceNode {
fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> {
let aligns = args.find()?.unwrap_or(Axes::with_x(Some(GenAlign::Start)));