Fix padding-top bug 🏗

This commit is contained in:
Laurenz 2019-12-15 00:30:00 +01:00
parent 895507146f
commit 3677e4a97d

View File

@ -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).