summaryrefslogtreecommitdiff
path: root/src/layout/frame.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-09-10 13:26:53 +0200
committerLaurenz <laurmaedje@gmail.com>2021-09-10 15:10:34 +0200
commit50a464488cc811d7ec9ed2b2c8b1e8a580510e20 (patch)
tree074efbed32c53aca4963ada5b50d9ef5cc39aa55 /src/layout/frame.rs
parentf592662aa00fab41bcf0a34e0d3a37464a1373c5 (diff)
Fix fr rows in infinite region
Diffstat (limited to 'src/layout/frame.rs')
-rw-r--r--src/layout/frame.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs
index 2c8ba3d8..f8d901ce 100644
--- a/src/layout/frame.rs
+++ b/src/layout/frame.rs
@@ -31,6 +31,7 @@ pub enum FrameChild {
impl Frame {
/// Create a new, empty frame.
+ #[track_caller]
pub fn new(size: Size, baseline: Length) -> Self {
assert!(size.is_finite());
Self { size, baseline, children: vec![] }