@extend-ai/react-docx 0.7.4 → 0.7.5
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/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27774,6 +27774,8 @@ function DocxEditorViewer({
|
|
|
27774
27774
|
);
|
|
27775
27775
|
return;
|
|
27776
27776
|
}
|
|
27777
|
+
const rootElement = viewerRootRef.current;
|
|
27778
|
+
const zoomScale = resolveViewerMeasurementZoomScale(rootElement, 1);
|
|
27777
27779
|
const nextHeightsByPage = trackedChangesByPage.map(
|
|
27778
27780
|
(annotations, pageIndex) => {
|
|
27779
27781
|
const pageHeights = /* @__PURE__ */ new Map();
|
|
@@ -27785,7 +27787,7 @@ function DocxEditorViewer({
|
|
|
27785
27787
|
return;
|
|
27786
27788
|
}
|
|
27787
27789
|
const measuredHeight = Math.round(
|
|
27788
|
-
cardElement.getBoundingClientRect().height
|
|
27790
|
+
cardElement.getBoundingClientRect().height / zoomScale
|
|
27789
27791
|
);
|
|
27790
27792
|
if (!Number.isFinite(measuredHeight) || measuredHeight <= 0) {
|
|
27791
27793
|
return;
|