@pdfme/common 6.1.12-dev.3 → 6.1.12-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1009,7 +1009,7 @@ function normalizePageSchemas(pageSchemas, paddingTop) {
|
|
|
1009
1009
|
function placeUnitsOnPages(schema, dynamicLayout, startGlobalY, contentHeight, paddingTop, pages) {
|
|
1010
1010
|
const dynamicHeights = dynamicLayout.heights;
|
|
1011
1011
|
let currentUnitIndex = 0;
|
|
1012
|
-
let currentPageIndex = Math.floor(startGlobalY / contentHeight);
|
|
1012
|
+
let currentPageIndex = Math.max(0, Math.floor(startGlobalY / contentHeight));
|
|
1013
1013
|
let currentYInPage = startGlobalY % contentHeight;
|
|
1014
1014
|
if (currentYInPage < 0) currentYInPage = 0;
|
|
1015
1015
|
let actualGlobalEndY = 0;
|