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) highlightLine(hash)
document.getElementsByClassName("highlight")[0].scrollIntoView({ document.getElementsByClassName("highlight")[0].scrollIntoView({
behavior: 'auto', behavior: 'auto',
block: 'center', block: 'center'
inline: 'start'
}); });
} }
} }

File diff suppressed because one or more lines are too long