@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.cjs
CHANGED
|
@@ -29027,6 +29027,8 @@ function DocxEditorViewer({
|
|
|
29027
29027
|
);
|
|
29028
29028
|
return;
|
|
29029
29029
|
}
|
|
29030
|
+
const rootElement = viewerRootRef.current;
|
|
29031
|
+
const zoomScale = resolveViewerMeasurementZoomScale(rootElement, 1);
|
|
29030
29032
|
const nextHeightsByPage = trackedChangesByPage.map(
|
|
29031
29033
|
(annotations, pageIndex) => {
|
|
29032
29034
|
const pageHeights = /* @__PURE__ */ new Map();
|
|
@@ -29038,7 +29040,7 @@ function DocxEditorViewer({
|
|
|
29038
29040
|
return;
|
|
29039
29041
|
}
|
|
29040
29042
|
const measuredHeight = Math.round(
|
|
29041
|
-
cardElement.getBoundingClientRect().height
|
|
29043
|
+
cardElement.getBoundingClientRect().height / zoomScale
|
|
29042
29044
|
);
|
|
29043
29045
|
if (!Number.isFinite(measuredHeight) || measuredHeight <= 0) {
|
|
29044
29046
|
return;
|