mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: bug
This commit is contained in:
parent
cbd002c388
commit
1ff66f5851
@ -69,7 +69,6 @@ const usePageFullScreenHeight = (props?) => {
|
|||||||
token,
|
token,
|
||||||
location.pathname,
|
location.pathname,
|
||||||
);
|
);
|
||||||
console.log(pageHeaderHeight);
|
|
||||||
return navHeight + pageHeaderHeight + addBlockBtnHeight;
|
return navHeight + pageHeaderHeight + addBlockBtnHeight;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -149,7 +148,6 @@ export const useDataBlockHeight = (options?: UseDataBlockHeightOptions) => {
|
|||||||
}
|
}
|
||||||
if (heightMode === HeightMode.FULL_HEIGHT) {
|
if (heightMode === HeightMode.FULL_HEIGHT) {
|
||||||
let res = window.innerHeight - pageFullScreenHeight;
|
let res = window.innerHeight - pageFullScreenHeight;
|
||||||
console.log(res, pageFullScreenHeight);
|
|
||||||
if (options?.removeBlockHeaderHeight) {
|
if (options?.removeBlockHeaderHeight) {
|
||||||
res = res - blockHeaderHeight;
|
res = res - blockHeaderHeight;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user