You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Layout: a table whose every row is a header refuses to render on a page with room to spare #488
A table whose every row is flagged as a header refuses to render, with the too-tall message, on a
page with room to spare.
Measured on adf6acf and on fix/table-row-axis, so this is pre-existing and unrelated to the
header-window change in #480, which restricts the repeatable header to the leading contiguous run
and leaves an all-header table's run unchanged at every row.
Page 300x600 at 10pt margins, three rows of one cell each at Helvetica 10, so roughly 580pt of
content height for 60pt of table:
Table
Outcome
all three rows IsHeader
InvalidOperationException: An element is too tall to fit on a single page and cannot be rendered.
first row IsHeader, other two data
renders, drawing all three cells
The mechanism is that TableRenderer.Layout has no data rows left to place once every row belongs
to the repeatable header, so it reports that nothing fits, and DocumentRenderer reads an
unconditional refusal on a fresh page as an element that can never render. The message then blames
the page size, which is the one thing that is not wrong, so this also belongs to the family in #481.
An all-header table is a reasonable thing to build: a specification table, a legend, or a key with
no data rows. It should render its rows once.
Found while widening the property generator to vary the header flag, which is why the generator
currently excludes the all-header shape with a comment naming this issue.
Activity
test(layout): make the row-axis property sweep able to find #480
fix(layout): pin the all-header table's seams and refusals (#488)
docs: place the #488 CHANGELOG entry after main's Fixed entries