Skip to content

Commit 8a4c68f

Browse files
committed
fix window height
1 parent 2fc52e6 commit 8a4c68f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

client/packages/lowcoder/src/comps/comps/tableLiteComp/hooks/useTableConfiguration.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ export function useTableHeights(
8383

8484
// Calculate available height for table body
8585
const bodyHeight = Math.max(0, containerHeight - totalUsedSpace);
86+
87+
console.log('Container height:', containerHeight);
88+
console.log('Body height calculated:', bodyHeight);
89+
8690

8791
return {
8892
containerStyle: {

client/packages/lowcoder/src/comps/comps/tableLiteComp/parts/TableContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const MainContainer = styled.div<{
88
}>`
99
display: flex;
1010
flex-direction: column;
11-
height: ${props => props.$mode === 'FIXED' && props.$height ? `${props.$height}px` : '100%'};
11+
height: 100%;
1212
overflow: hidden;
1313
position: relative;
1414
`;

0 commit comments

Comments
 (0)