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
If you have a repeating element that wraps across multiple pages, while also using fixed elements that should appear on multiple pages, if you add a minHeight style to the repeating row, it appears to ignore the fixed space already consumed by the other elements. Interestingly, this doesn't happen if you use height instead.
(Also try to replace minHeight with height. A different but possibly related issue appears on page 2)
constlines=newArray(100).fill(null);constPDF=()=>(<Document><Page><Viewfixed><Text>This is a header on each page</Text></View>{lines.map((_,i)=>(<Viewkey={i}style={{minHeight: 30}}debug><Text>Row {i+1}</Text></View>))}</Page></Document>);
Expected behavior
I expect the repeating rows to respect the space already occupied by the fixed elements.
Desktop (please complete the following information):
OS: macOS
Browser: Chrome
React-pdf version: 3.4.4
The text was updated successfully, but these errors were encountered:
Describe the bug
If you have a repeating element that wraps across multiple pages, while also using
fixed
elements that should appear on multiple pages, if you add aminHeight
style to the repeating row, it appears to ignore the fixed space already consumed by the other elements. Interestingly, this doesn't happen if you useheight
instead.To Reproduce
REPL Reproduction
(Also try to replace
minHeight
withheight
. A different but possibly related issue appears on page 2)Expected behavior
I expect the repeating rows to respect the space already occupied by the fixed elements.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: