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.
@@ -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
- sectionsConfig[keys[i - 1]];
13385
- // topRef.current.style.marginBottom = `${dif + HEADER_HEIGHT - 24}px`;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.427",
3
+ "version": "0.6.428",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -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
- // topRef.current.style.marginBottom = `${dif + HEADER_HEIGHT - 24}px`;
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
  }