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
Describe the bug
I create a Text element and add a render function to display page and total page. Then I add custom styling like fontSize, FontFamily and so on. When I add lineHeight with any numeric value, the text disappears.
To Reproduce
Steps to reproduce the behavior including code snippet (if applies):
text under A: is displayed, the text under B: is not displayed
Code snippet:
conststyles=StyleSheet.create({page: {padding: 60},box: {width: '100%',marginBottom: 30,borderRadius: 5},pageNumbers: {position: 'absolute',bottom: 20,left: 0,right: 0,textAlign: 'center'},});constdoc=(<Document><Pagestyle={styles.page}size="A4"wrap><Text>A: Text with lineHeight and without rendering function:</Text><Textstyle={{lineHeight:1}}>1 / 1</Text><Text>B: Text with lineHeight and with rendering function</Text><Textstyle={{lineHeight:1}}render={({ pageNumber, totalPages })=>(`${pageNumber} / ${totalPages}`)}/></Page></Document>);ReactPDF.render(doc);
Expected behavior
The text with render function under B: appear.
Desktop (please complete the following information):
OS: MacOS 15.2
Browser chrome
@react-pdf/render v4.1.6
@react-pdf/layout v4.2.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I create a Text element and add a render function to display page and total page. Then I add custom styling like fontSize, FontFamily and so on. When I add lineHeight with any numeric value, the text disappears.
To Reproduce
Steps to reproduce the behavior including code snippet (if applies):
Code snippet:
Expected behavior
The text with render function under B: appear.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: