Center scrolled view

This commit is contained in:
Kenox 2022-11-03 18:46:33 +01:00
commit bd4a559d8b
2 changed files with 2 additions and 3 deletions

View file

@ -235,8 +235,7 @@ haste.prototype.loadDocument = function(key) {
highlightLine(hash)
document.getElementsByClassName("highlight")[0].scrollIntoView({
behavior: 'auto',
block: 'center',
inline: 'start'
block: 'center'
});
}
}

File diff suppressed because one or more lines are too long