timvir 0.2.13 → 0.2.15
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/blocks/Viewport/index.js +3 -5
- package/package.json +1 -1
package/blocks/Viewport/index.js
CHANGED
|
@@ -212,11 +212,9 @@ function Viewport(props, ref) {
|
|
|
212
212
|
};
|
|
213
213
|
}, [svgROE]);
|
|
214
214
|
const iframeRO = useResizeObserver(entries => {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
setMaxHeight(Math.max(height, maxHeight !== null && maxHeight !== void 0 ? maxHeight : 0));
|
|
219
|
-
}
|
|
215
|
+
const height = entries[entries.length - 1].contentRect.height;
|
|
216
|
+
setHeight(height);
|
|
217
|
+
setMaxHeight(Math.max(height, maxHeight !== null && maxHeight !== void 0 ? maxHeight : 0));
|
|
220
218
|
});
|
|
221
219
|
|
|
222
220
|
/*
|