Skip to content

Commit 6bc2da8

Browse files
authored
fix: Pagination footer bar hides rows in data browser (#2879)
1 parent 950d15a commit 6bc2da8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/BrowserCell/BrowserCell.react.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,12 @@ export default class BrowserCell extends Component {
235235

236236
// BrowserToolbar + DataBrowserHeader height
237237
const topBoundary = 126;
238+
// Account for BrowserFooter height when checking the bottom boundary
239+
const bottomBoundary = window.innerHeight - 36;
238240

239241
if (left < leftBoundary || right > window.innerWidth) {
240242
node.scrollIntoView({ block: 'nearest', inline: 'start' });
241-
} else if (top < topBoundary || bottom > window.innerHeight) {
243+
} else if (top < topBoundary || bottom > bottomBoundary) {
242244
node.scrollIntoView({ block: 'nearest', inline: 'nearest' });
243245
}
244246
}

0 commit comments

Comments
 (0)