Skip to content

Commit 2afe5fc

Browse files
committed
fix: KWIC scroll block nearest
1 parent 4a43670 commit 2afe5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/scripts/components/kwic/kwic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ angular.module("korpApp").component("kwic", {
553553
/** Scroll KWIC container to center the match column. */
554554
function centerScrollbar() {
555555
// Type assertion needed because `container` is non-standard.
556-
const options = { inline: "center", container: "nearest" } as ScrollIntoViewOptions
556+
const options = { block: "nearest", inline: "center", container: "nearest" } as ScrollIntoViewOptions
557557
$element.find(".match").get(0)?.scrollIntoView(options)
558558
}
559559

0 commit comments

Comments
 (0)