diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-19 23:33:33 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-19 23:33:33 +0100 |
| commit | 8eeb4ad8f6df3bedebdb86f95e013a9ea71fb687 (patch) | |
| tree | 435a9afc2cfd900e6cb76e77d3e57b964c89ec8c /library/src/layout | |
| parent | 565b1977aef9db70aef29a1eb8747f42a7fe4a15 (diff) | |
Rename `margins` to `margin`
Diffstat (limited to 'library/src/layout')
| -rw-r--r-- | library/src/layout/page.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/layout/page.rs b/library/src/layout/page.rs index 6a0a3dfd..b0e3ff6d 100644 --- a/library/src/layout/page.rs +++ b/library/src/layout/page.rs @@ -21,7 +21,7 @@ impl PageNode { /// The page's margins. #[property(fold)] - pub const MARGINS: Sides<Option<Smart<Rel<Length>>>> = Sides::splat(Smart::Auto); + pub const MARGIN: Sides<Option<Smart<Rel<Length>>>> = Sides::splat(Smart::Auto); /// How many columns the page has. pub const COLUMNS: NonZeroUsize = NonZeroUsize::new(1).unwrap(); @@ -77,7 +77,7 @@ impl PageNode { // Determine the margins. let default = Rel::from(0.1190 * min); - let padding = styles.get(Self::MARGINS).map(|side| side.unwrap_or(default)); + let padding = styles.get(Self::MARGIN).map(|side| side.unwrap_or(default)); let mut child = self.0.clone(); |
