mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix padding-top bug 🏗
This commit is contained in:
parent
895507146f
commit
3677e4a97d
@ -144,7 +144,7 @@ impl LayoutSpace {
|
|||||||
/// The offset from the origin to the start of content, that is,
|
/// The offset from the origin to the start of content, that is,
|
||||||
/// `(padding.left, padding.top)`.
|
/// `(padding.left, padding.top)`.
|
||||||
pub fn start(&self) -> Size2D {
|
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).
|
/// The actually usable area (dimensions minus padding).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user