We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd79ed commit 779977fCopy full SHA for 779977f
src/visualization/types/SimpleTable/PagedTable.tsx
@@ -278,7 +278,9 @@ const PagedTable: FC<Props> = ({result, properties}) => {
278
279
timeout = setTimeout(() => {
280
animationFrameID = requestAnimationFrame(() => {
281
- setHeight(entries[0].contentRect.height)
+ setHeight(
282
+ Math.min(entries[0].contentRect.height, window.screen.height)
283
+ )
284
})
285
}, 200)
286
@@ -290,7 +292,7 @@ const PagedTable: FC<Props> = ({result, properties}) => {
290
292
const rect = curr?.getBoundingClientRect()
291
293
294
if (rect && rect.height !== height) {
- setHeight(rect.height)
295
+ setHeight(Math.min(rect.height, window.screen.height))
296
}
297
298
return () => {
0 commit comments