datastake-daf 0.6.427 → 0.6.428
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/components/index.js
CHANGED
|
@@ -13377,12 +13377,18 @@ function PdfView(_ref2) {
|
|
|
13377
13377
|
ref.current.style.paddingBottom = '30px';
|
|
13378
13378
|
}
|
|
13379
13379
|
if (newHeight > PAGE_HEIGHT - 30 - FOOTER_HEIGHT - HEADER_HEIGHT) {
|
|
13380
|
+
const dif = Math.abs(PAGE_HEIGHT - incrHeight);
|
|
13380
13381
|
ref.current.style.marginTop = '30px';
|
|
13381
13382
|
_page += 1;
|
|
13382
13383
|
_pages.push(_page);
|
|
13383
13384
|
if (sectionsConfig[keys[i - 1]]) {
|
|
13384
|
-
|
|
13385
|
-
|
|
13385
|
+
const {
|
|
13386
|
+
ref: topRef
|
|
13387
|
+
} = sectionsConfig[keys[i - 1]];
|
|
13388
|
+
console.log({
|
|
13389
|
+
dif
|
|
13390
|
+
});
|
|
13391
|
+
topRef.current.style.marginBottom = "".concat(HEADER_HEIGHT + 24, "px");
|
|
13386
13392
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
13387
13393
|
// console.log('margin', dif);
|
|
13388
13394
|
}
|
package/package.json
CHANGED
|
@@ -86,7 +86,8 @@ export default function PdfView({
|
|
|
86
86
|
|
|
87
87
|
if (sectionsConfig[keys[i - 1]]) {
|
|
88
88
|
const { ref: topRef } = sectionsConfig[keys[i - 1]];
|
|
89
|
-
|
|
89
|
+
console.log({dif})
|
|
90
|
+
topRef.current.style.marginBottom = `${HEADER_HEIGHT + 24}px`;
|
|
90
91
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
91
92
|
// console.log('margin', dif);
|
|
92
93
|
}
|