react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

minPresenceAhead with Row and Column Layout - Children break

Open KalanaPerera opened this issue 2 years ago • 0 comments

Describe the bug I am creating a Row and 2 Column layout to show the list of items, As you see, name and id break.

<View class={style.row} minPresenceAhead={40}>
<View  class={style.column} >
<Text style={styles.name}>{item.name}</Text>
<Text style={styles.id}>ID: {item.id}</Text>
</View>
<View  class={style.column} >
<Text style={styles.name}>{item.name}</Text>
<Text style={styles.id}>ID: {item.id}</Text>
</View>
</View>

Link to react-pdf REPL

Expected behavior

If the space not enough, entire ROW should be move to next. In this Senario Both Grapes and Mango should be in next page.

Screenshots image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser chrome
  • React-pdf version : 3.3.5 (repl), 3.0.1 (locally)

KalanaPerera avatar Feb 04 '24 04:02 KalanaPerera