Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/BrowserCell/BrowserCell.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,12 @@ export default class BrowserCell extends Component {

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

if (left < leftBoundary || right > window.innerWidth) {
node.scrollIntoView({ block: 'nearest', inline: 'start' });
} else if (top < topBoundary || bottom > window.innerHeight) {
} else if (top < topBoundary || bottom > bottomBoundary) {
node.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
}
Expand Down
Loading