datastake-daf 0.6.454 → 0.6.456
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
|
@@ -14579,7 +14579,8 @@ function PdfView(_ref2) {
|
|
|
14579
14579
|
userId = 'IDD-0000000',
|
|
14580
14580
|
accountId = 'IDD-0000000',
|
|
14581
14581
|
documentId = 'IDD-0000000',
|
|
14582
|
-
downloadId = 'DWL-00000123'
|
|
14582
|
+
downloadId = 'DWL-00000123',
|
|
14583
|
+
isEvaluation = false
|
|
14583
14584
|
} = _ref2;
|
|
14584
14585
|
const [sectionsConfig, setSectionsConfig] = React.useState({});
|
|
14585
14586
|
const [pages, setPages] = React.useState([1]);
|
|
@@ -14610,6 +14611,7 @@ function PdfView(_ref2) {
|
|
|
14610
14611
|
ref.current.style.paddingBottom = '30px';
|
|
14611
14612
|
}
|
|
14612
14613
|
if (newHeight > PAGE_HEIGHT - 30 - FOOTER_HEIGHT - HEADER_HEIGHT) {
|
|
14614
|
+
const dif = Math.abs(PAGE_HEIGHT - incrHeight);
|
|
14613
14615
|
ref.current.style.marginTop = '30px';
|
|
14614
14616
|
_page += 1;
|
|
14615
14617
|
_pages.push(_page);
|
|
@@ -14617,7 +14619,7 @@ function PdfView(_ref2) {
|
|
|
14617
14619
|
const {
|
|
14618
14620
|
ref: topRef
|
|
14619
14621
|
} = sectionsConfig[keys[i - 1]];
|
|
14620
|
-
topRef.current.style.marginBottom = '5%';
|
|
14622
|
+
topRef.current.style.marginBottom = isEvaluation ? '5%' : "".concat(dif + HEADER_HEIGHT - 24, "px");
|
|
14621
14623
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
14622
14624
|
// console.log('margin', dif);
|
|
14623
14625
|
}
|
package/package.json
CHANGED
|
@@ -46,6 +46,7 @@ export default function PdfView({
|
|
|
46
46
|
accountId = 'IDD-0000000',
|
|
47
47
|
documentId = 'IDD-0000000',
|
|
48
48
|
downloadId = 'DWL-00000123',
|
|
49
|
+
isEvaluation = false,
|
|
49
50
|
}) {
|
|
50
51
|
const [sectionsConfig, setSectionsConfig] = useState({});
|
|
51
52
|
const [pages, setPages] = useState([1]);
|
|
@@ -86,7 +87,7 @@ export default function PdfView({
|
|
|
86
87
|
|
|
87
88
|
if (sectionsConfig[keys[i - 1]]) {
|
|
88
89
|
const { ref: topRef } = sectionsConfig[keys[i - 1]];
|
|
89
|
-
topRef.current.style.marginBottom = '5%'
|
|
90
|
+
topRef.current.style.marginBottom = isEvaluation ? '5%' : `${dif + HEADER_HEIGHT - 24}px`;
|
|
90
91
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
91
92
|
// console.log('margin', dif);
|
|
92
93
|
}
|