fix: large header is missing and cursor is buggy in doc with footnotes#2659
fix: large header is missing and cursor is buggy in doc with footnotes#2659VladaHarbour wants to merge 3 commits intomainfrom
Conversation
07bb47b to
a79afa3
Compare
There was a problem hiding this comment.
@VladaHarbour looks good, no blockers.
both root causes are fixed correctly:
- first-page headers now get cached (not just the default one), so they render on load
- header heights survive the footnote relayout pass, so body text doesn't overlap tall headers
the footnote position guards are also correct — footnotes use a separate position space that overlaps with the body, so skipping them prevents wrong cursor/scroll jumps.
spec check
tested with 6 Word-native documents against ECMA-376 rules:
| test | what it checks | result |
|---|---|---|
| titlePg + first header + footnotes | core bug fix | pass |
| multi-section, sec2 inherits first header | variant inheritance | pass |
| multi-section, sec2 titlePg=false | first header suppressed | pass |
| first header + 3 footnotes | both fixes together | pass |
| evenAndOddHeaders | even page header selection | fail pre-existing gap, tracked as SD-2450 |
| empty first header | suppresses inheritance | pass |
5 passing test docs uploaded to the rendering corpus for layout + visual regression coverage.
even/odd gap (pre-existing, tracked as SD-2450)
SuperDoc always shows the default header — it doesn't switch to the even header on even pages. Word does. this isn't caused by this PR and the cache already includes even refs, so it'll be ready when even/odd rendering is added.
left 2 small inline comments, neither blocking.
packages/super-editor/src/editors/v1/core/presentation-editor/PresentationEditor.ts
Outdated
Show resolved
Hide resolved
a79afa3 to
9e7b817
Compare
… layout - Layout engine: verify oddEvenHeadersFooters drives physical-page parity for margin inflation (odd pages get odd-header height, even pages get even-header height), and that the option being unset keeps default behavior - HeaderFooterPerRidLayout: verify even/odd header refs inherited from earlier sections produce per-section layout cache entries
There was a problem hiding this comment.
@VladaHarbour both items from last round are fixed, nice.
tested the even/odd headers with the same test file from round 1 — SuperDoc now matches Word. odd pages show the odd/default header, even pages show the even header (correctly inherited across sections).
pushed a commit adding tests for the even/odd behavior.


No description provided.