datastake-daf 0.6.456 → 0.6.458
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
|
@@ -14580,7 +14580,7 @@ function PdfView(_ref2) {
|
|
|
14580
14580
|
accountId = 'IDD-0000000',
|
|
14581
14581
|
documentId = 'IDD-0000000',
|
|
14582
14582
|
downloadId = 'DWL-00000123',
|
|
14583
|
-
|
|
14583
|
+
customMarginBottom = ''
|
|
14584
14584
|
} = _ref2;
|
|
14585
14585
|
const [sectionsConfig, setSectionsConfig] = React.useState({});
|
|
14586
14586
|
const [pages, setPages] = React.useState([1]);
|
|
@@ -14619,7 +14619,7 @@ function PdfView(_ref2) {
|
|
|
14619
14619
|
const {
|
|
14620
14620
|
ref: topRef
|
|
14621
14621
|
} = sectionsConfig[keys[i - 1]];
|
|
14622
|
-
topRef.current.style.marginBottom =
|
|
14622
|
+
topRef.current.style.marginBottom = customMarginBottom || "".concat(dif + HEADER_HEIGHT - 24, "px");
|
|
14623
14623
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
14624
14624
|
// console.log('margin', dif);
|
|
14625
14625
|
}
|
|
@@ -14630,7 +14630,7 @@ function PdfView(_ref2) {
|
|
|
14630
14630
|
});
|
|
14631
14631
|
setPages(_pages);
|
|
14632
14632
|
}
|
|
14633
|
-
}, [sectionsConfig]);
|
|
14633
|
+
}, [sectionsConfig, isEvaluation, config === null || config === void 0 ? void 0 : config.length]);
|
|
14634
14634
|
React.useEffect(() => {
|
|
14635
14635
|
doSizing();
|
|
14636
14636
|
}, [doSizing]);
|
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ export default function PdfView({
|
|
|
46
46
|
accountId = 'IDD-0000000',
|
|
47
47
|
documentId = 'IDD-0000000',
|
|
48
48
|
downloadId = 'DWL-00000123',
|
|
49
|
-
|
|
49
|
+
customMarginBottom = '',
|
|
50
50
|
}) {
|
|
51
51
|
const [sectionsConfig, setSectionsConfig] = useState({});
|
|
52
52
|
const [pages, setPages] = useState([1]);
|
|
@@ -87,7 +87,7 @@ export default function PdfView({
|
|
|
87
87
|
|
|
88
88
|
if (sectionsConfig[keys[i - 1]]) {
|
|
89
89
|
const { ref: topRef } = sectionsConfig[keys[i - 1]];
|
|
90
|
-
topRef.current.style.marginBottom =
|
|
90
|
+
topRef.current.style.marginBottom = customMarginBottom || `${dif + HEADER_HEIGHT - 24}px`;
|
|
91
91
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
92
92
|
// console.log('margin', dif);
|
|
93
93
|
}
|
|
@@ -98,7 +98,7 @@ export default function PdfView({
|
|
|
98
98
|
})
|
|
99
99
|
setPages(_pages);
|
|
100
100
|
}
|
|
101
|
-
}, [sectionsConfig]);
|
|
101
|
+
}, [sectionsConfig, isEvaluation, config?.length]);
|
|
102
102
|
|
|
103
103
|
useEffect(() => {
|
|
104
104
|
doSizing();
|