mirror of
https://github.com/typst/typst
synced 2025-05-12 03:56:21 +08:00
Fix fill color obstructing page header and background (#277)
This commit is contained in:
parent
a253b47e7c
commit
238f64327c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user