From 3677e4a97dd08252e2e1172ac60a5ab958f8ee16 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 15 Dec 2019 00:30:00 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20padding-top=20bug=20=F0=9F=8F=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/mod.rs b/src/layout/mod.rs index b2b102645..f937a0544 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).