Skip to content

Commit

Permalink
Work around react-pdf bug
Browse files Browse the repository at this point in the history
Until diegomura/react-pdf#2400 is merged,
react-pdf can sometimes fall into an infinite loop during layouting,
when a min-presence-ahead element has a following sibling with vertical
margins. This caused our Star Wars example camp to be unprintable.
The bug does not happen with vertical padding, so this workaround will
fix the problem for now.
  • Loading branch information
carlobeltrame committed Sep 29, 2023
1 parent 1d3e45e commit 49c0099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf/src/campPrint/scheduleEntry/ScheduleEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</View>
</View>
</View>
<View style="margin-bottom: 20pt; font-size: 10pt">
<View style="padding-bottom: 20pt; font-size: 10pt">
<ContentNode :content-node="activity.rootContentNode()" />
</View>
</template>
Expand Down

0 comments on commit 49c0099

Please sign in to comment.