Open simon-ezacae opened 2 years ago
@simon-feamzy
if (options.useSafelyMarginBottom && rowBottomY + rowHeight + columnSpacing + safelyMarginBottom >= maxY && !lockAddPage) onFirePageAdded();
You were missing columnSpacing.@natancabral This seems a critical bug to me. Is this library still maintained?
Plus, if the calculation is fixed, I would propose to reduce the magic safelyMarginBottom
. Either to 0, or a small fixed amount like
let safelyMarginBottom = 14 /* points = 0.5 cm */
Right now, it is half the top margin, which is a problem with a large top margin e.g. if there is a letterhead.
@natancabral Could you please accept this pull request ?