Skip to content

Commit 1b453fe

Browse files
committed
fix: keep rows visible above footer
1 parent 92ce7a5 commit 1b453fe

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)