Fix fill color obstructing page header and background (#277)

This commit is contained in:
Florian Kothmeier 2023-03-25 13:30:19 +01:00 committed by GitHub
parent a253b47e7c
commit 238f64327c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,10 +326,6 @@ impl PageElem {
// Realize overlays.
for frame in &mut fragment {
if let Some(fill) = fill {
frame.fill(fill);
}
let size = frame.size();
let pad = padding.resolve(styles).relative_to(size);
let pw = size.x - pad.left - pad.right;
@ -365,6 +361,10 @@ impl PageElem {
frame.push_frame(pos, sub);
}
}
if let Some(fill) = fill {
frame.fill(fill);
}
}
Ok(fragment)