summaryrefslogtreecommitdiff
path: root/src/library/container.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-16 10:41:30 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-16 10:41:30 +0100
commit0e0f340502beada1cd9ee23857f48b91a0d11a90 (patch)
treee4e4087260720adf4bab57edeac6a3d3cb5f14cf /src/library/container.rs
parentbc118634aca5de415d211cab38c4eaa3d3cca25f (diff)
Revert page and inline levels
Diffstat (limited to 'src/library/container.rs')
-rw-r--r--src/library/container.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library/container.rs b/src/library/container.rs
index 4b52139f..2bcbbd19 100644
--- a/src/library/container.rs
+++ b/src/library/container.rs
@@ -5,14 +5,13 @@ use super::{ShapeKind, ShapeNode};
pub fn box_(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
let width = args.named("width")?;
let height = args.named("height")?;
- let fill = args.named("fill")?;
let body: Template = args.find().unwrap_or_default();
Ok(Value::Template(Template::from_inline(move |style| {
ShapeNode {
shape: ShapeKind::Rect,
width,
height,
- fill: fill.map(Paint::Color),
+ fill: None,
child: Some(body.to_flow(style).pack()),
}
})))