summaryrefslogtreecommitdiff
path: root/library/src/layout/place.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-21 00:16:07 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-21 00:26:20 +0100
commitee732468c7487c81aa6470571077988b75d36ebb (patch)
treee0361bb75b8bbc3359b711f4009e165459d66248 /library/src/layout/place.rs
parent15cd273c82a96128a63781981a4405fcd2b1e846 (diff)
Document text category
Diffstat (limited to 'library/src/layout/place.rs')
-rw-r--r--library/src/layout/place.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/src/layout/place.rs b/library/src/layout/place.rs
index ed3d71bf..406aa862 100644
--- a/library/src/layout/place.rs
+++ b/library/src/layout/place.rs
@@ -33,6 +33,13 @@ impl PlaceNode {
let out_of_flow = aligns.y.is_some();
Ok(Self(body.moved(Axes::new(dx, dy)).aligned(aligns), out_of_flow).pack())
}
+
+ fn field(&self, name: &str) -> Option<Value> {
+ match name {
+ "body" => Some(Value::Content(self.0.clone())),
+ _ => None,
+ }
+ }
}
impl Layout for PlaceNode {