summaryrefslogtreecommitdiff
path: root/src/library/align.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-10-13 12:08:07 +0200
committerLaurenz <laurmaedje@gmail.com>2019-10-13 12:08:07 +0200
commit463e4ebd8234da5e28700e9b22b6ef5f0dfef56f (patch)
tree01f3961d6996de3ee8f9819c2792f6ee8c2a3c3d /src/library/align.rs
parent6f22e4f13c42f06b686a01fbdd28a0163e88ae77 (diff)
Refactor layout types 🚧
Diffstat (limited to 'src/library/align.rs')
-rw-r--r--src/library/align.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/library/align.rs b/src/library/align.rs
index 4b2ee8c3..b1e41abb 100644
--- a/src/library/align.rs
+++ b/src/library/align.rs
@@ -38,12 +38,13 @@ impl Function for AlignFunc {
Ok(AlignFunc { alignment, body })
}
- fn layout(&self, mut ctx: LayoutContext) -> LayoutResult<Option<Layout>> {
+ fn layout(&self, ctx: LayoutContext) -> LayoutResult<FuncCommands> {
if let Some(body) = &self.body {
- // Override the previous alignment and do the layouting.
- ctx.space.alignment = self.alignment;
- layout(body, ctx)
- .map(|l| Some(Layout::Boxed(l)))
+ // // Override the previous alignment and do the layouting.
+ // ctx.space.alignment = self.alignment;
+ // layout(body, ctx)
+ // .map(|l| Some(Layout::Boxed(l)))
+ Ok(FuncCommands::new())
} else {
unimplemented!("context-modifying align func")
}