We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a43670 commit 2afe5fcCopy full SHA for 2afe5fc
app/scripts/components/kwic/kwic.ts
@@ -553,7 +553,7 @@ angular.module("korpApp").component("kwic", {
553
/** Scroll KWIC container to center the match column. */
554
function centerScrollbar() {
555
// Type assertion needed because `container` is non-standard.
556
- const options = { inline: "center", container: "nearest" } as ScrollIntoViewOptions
+ const options = { block: "nearest", inline: "center", container: "nearest" } as ScrollIntoViewOptions
557
$element.find(".match").get(0)?.scrollIntoView(options)
558
}
559
0 commit comments