Skip to content

Grid header orphan prevention #4972

@lerobynetcool

Description

@lerobynetcool

Description

The following example renders a header at the bottom of the page followed by another header on the next page.
header orphan prevention seems to fail here.

#box(height:600pt) // enough text to reach the bottom
#grid(
  grid.header(block("HELLO THIS IS HEADER",inset:2em,fill:blue)),
  grid.cell(block("HI THIS IS CONTENT",inset:2em,fill:red)),
)

Here is a screenshot of the problem
image

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayoutRelated to layout, positioning, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions