From dca478182b99b43e1af697d35820a22135bc16ff Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 12 Feb 2023 23:12:22 +0100 Subject: Update changelog --- library/src/layout/container.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'library/src/layout') diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs index 49ce0372..a77c0df9 100644 --- a/library/src/layout/container.rs +++ b/library/src/layout/container.rs @@ -41,6 +41,13 @@ use crate::prelude::*; /// - height: `Rel` (named) /// The height of the box. /// +/// - baseline: `Rel` (named) +/// An amount to shift the box's baseline by. +/// +/// ```example +/// Image: #box(baseline: 40%, image("tiger.jpg", width: 2cm)). +/// ``` +/// /// ## Category /// layout #[func] -- cgit v1.2.3