diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-17 00:17:28 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-17 00:17:28 +0200 |
| commit | 9a798ce6f6e734a02764473891632c071fed41ee (patch) | |
| tree | cb433d5b6309f55799749c19eec8579d86bf36b2 /src/exec/mod.rs | |
| parent | 9462fb17b390c57846b9215217ca7c32b649f0a5 (diff) | |
Make percentages for h and v relative to area instead of font size
Diffstat (limited to 'src/exec/mod.rs')
| -rw-r--r-- | src/exec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exec/mod.rs b/src/exec/mod.rs index dc3054d2..63e47995 100644 --- a/src/exec/mod.rs +++ b/src/exec/mod.rs @@ -119,7 +119,7 @@ fn exec_item(ctx: &mut ExecContext, label: EcoString, body: &SyntaxTree, map: &E aspect: None, children: vec![ StackChild::Any(label.into(), Gen::default()), - StackChild::Spacing(ctx.state.font.size / 2.0), + StackChild::Spacing((ctx.state.font.size / 2.0).into()), StackChild::Any(body.into(), Gen::default()), ], }); |
