Skip to content

fix: document render crashes#3170

Open
VladaHarbour wants to merge 1 commit intomainfrom
sd-2499_drawing-import-crash
Open

fix: document render crashes#3170
VladaHarbour wants to merge 1 commit intomainfrom
sd-2499_drawing-import-crash

Conversation

@VladaHarbour
Copy link
Copy Markdown
Contributor

No description provided.

@VladaHarbour VladaHarbour requested review from caio-pizzol and tupizz May 5, 2026 18:09
@VladaHarbour VladaHarbour self-assigned this May 5, 2026
@VladaHarbour VladaHarbour requested a review from a team as a code owner May 5, 2026 18:09
@linear
Copy link
Copy Markdown

linear Bot commented May 5, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8c4ea2a823

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +2824 to +2825
if (kind && Number.isFinite(fragmentHeight) && fragmentHeight >= canvasHeight) {
return true;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restrict tall-anchor exclusion to page-covering overlays

This new guard drops all anchored header/footer fragments when fragmentHeight >= canvasHeight, even when the anchor is paragraph-relative and represents real header/footer content rather than a background overlay. In those cases layoutHeaderFooter() now underestimates layout.height, so layoutDocument() reserves too little margin and body content can overlap header/footer content. The exclusion should be tied to true page-covering conditions (anchor mode/position/bounds), not height alone.

Useful? React with 👍 / 👎.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants