datastake-daf 0.6.436 → 0.6.438

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.
@@ -14550,7 +14550,7 @@ const Row = _ref => {
14550
14550
  React.useEffect(() => {
14551
14551
  const observer = new ResizeObserver(entries => {
14552
14552
  for (const entry of entries) {
14553
- setHeight(entry.contentRect.height * 0.8);
14553
+ setHeight(entry.contentRect.height);
14554
14554
  }
14555
14555
  });
14556
14556
  observer.observe(ref.current);
@@ -14618,7 +14618,7 @@ function PdfView(_ref2) {
14618
14618
  const {
14619
14619
  ref: topRef
14620
14620
  } = sectionsConfig[keys[i - 1]];
14621
- topRef.current.style.marginBottom = _page === 1 ? "".concat(dif + HEADER_HEIGHT - 24, "px") : "".concat(dif * 0.5, "px");
14621
+ topRef.current.style.marginBottom = "".concat(dif + HEADER_HEIGHT - 24, "px");
14622
14622
  incrHeight = height + 24 + HEADER_HEIGHT;
14623
14623
  // console.log('margin', dif);
14624
14624
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.436",
3
+ "version": "0.6.438",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -15,7 +15,7 @@ const Row = ({ widgets, i, onChangeHeight = () => { } }) => {
15
15
  useEffect(() => {
16
16
  const observer = new ResizeObserver((entries) => {
17
17
  for (const entry of entries) {
18
- setHeight(entry.contentRect.height * 0.8);
18
+ setHeight(entry.contentRect.height);
19
19
  }
20
20
  });
21
21
 
@@ -86,7 +86,7 @@ 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 = _page === 1 ? `${dif + HEADER_HEIGHT - 24}px` : `${dif * 0.5}px`;
89
+ topRef.current.style.marginBottom = `${dif + HEADER_HEIGHT - 24}px`;
90
90
  incrHeight = height + 24 + HEADER_HEIGHT;
91
91
  // console.log('margin', dif);
92
92
  }