summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/layout/mod.rs2
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).