pb-sxp-ui 1.19.11 → 1.19.13

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.
@@ -234,8 +234,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
234
234
  return safeAreaBottom;
235
235
  };
236
236
  const height = useMemo(() => {
237
- return containerHeight - minusHeight - tagHeight - getHeightWithSafeArea2();
238
- }, [minusHeight, containerHeight, tagHeight, getHeightWithSafeArea2]);
237
+ return visibleHeight - minusHeight - tagHeight - getHeightWithSafeArea2();
238
+ }, [minusHeight, visibleHeight, tagHeight, getHeightWithSafeArea2, containerHeight]);
239
239
  const visList = useMemo(() => {
240
240
  var _a;
241
241
  const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
@@ -17,7 +17,8 @@ export const useVisibleHeight = () => {
17
17
  return height;
18
18
  };
19
19
  const updateHeight = useCallback(() => {
20
- const height = getVisibleContentHeight();
20
+ var _a;
21
+ const height = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || (window === null || window === void 0 ? void 0 : window.innerHeight);
21
22
  setVisibleHeight(height);
22
23
  }, []);
23
24
  useEffect(() => {
@@ -237,8 +237,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
237
237
  return safeAreaBottom;
238
238
  };
239
239
  const height = (0, react_1.useMemo)(() => {
240
- return containerHeight - minusHeight - tagHeight - getHeightWithSafeArea2();
241
- }, [minusHeight, containerHeight, tagHeight, getHeightWithSafeArea2]);
240
+ return visibleHeight - minusHeight - tagHeight - getHeightWithSafeArea2();
241
+ }, [minusHeight, visibleHeight, tagHeight, getHeightWithSafeArea2, containerHeight]);
242
242
  const visList = (0, react_1.useMemo)(() => {
243
243
  var _a;
244
244
  const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
@@ -20,7 +20,8 @@ const useVisibleHeight = () => {
20
20
  return height;
21
21
  };
22
22
  const updateHeight = (0, react_1.useCallback)(() => {
23
- const height = getVisibleContentHeight();
23
+ var _a;
24
+ const height = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || (window === null || window === void 0 ? void 0 : window.innerHeight);
24
25
  setVisibleHeight(height);
25
26
  }, []);
26
27
  (0, react_1.useEffect)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.19.11",
3
+ "version": "1.19.13",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",