summaryrefslogtreecommitdiff
path: root/src/library/align.rs
diff options
context:
space:
mode:
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")
}