Add scroll-margin-top to account for sticky header (#16269)
Fixes #16263 Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
f533b5d5cf
commit
eee03ae90a
2 changed files with 9 additions and 1 deletions
|
@ -1343,7 +1343,7 @@ function initPullRequestReview() {
|
|||
$(`#code-comments-${id}`).removeClass('hide');
|
||||
$(`#code-preview-${id}`).removeClass('hide');
|
||||
$(`#hide-outdated-${id}`).removeClass('hide');
|
||||
$(window).scrollTop(commentDiv.offset().top);
|
||||
commentDiv[0].scrollIntoView();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue