diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-15 00:30:00 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-15 00:30:00 +0100 |
| commit | 3677e4a97dd08252e2e1172ac60a5ab958f8ee16 (patch) | |
| tree | a1a308f4cf6b538145e82ed418d15c5baa855e20 /src/layout | |
| parent | 895507146ff3531cb5279c02e7b5c6fafd363d74 (diff) | |
Fix padding-top bug 🏗
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index b2b10264..f937a054 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -144,7 +144,7 @@ impl LayoutSpace { /// The offset from the origin to the start of content, that is, /// `(padding.left, padding.top)`. pub fn start(&self) -> Size2D { - Size2D::new(self.padding.left, self.padding.right) + Size2D::new(self.padding.left, self.padding.top) } /// The actually usable area (dimensions minus padding). |
