mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 09:53:10 -07:00
Center scrolled view
This commit is contained in:
parent
78c7b4626d
commit
bd4a559d8b
2 changed files with 2 additions and 3 deletions
|
@ -235,8 +235,7 @@ haste.prototype.loadDocument = function(key) {
|
|||
highlightLine(hash)
|
||||
document.getElementsByClassName("highlight")[0].scrollIntoView({
|
||||
behavior: 'auto',
|
||||
block: 'center',
|
||||
inline: 'start'
|
||||
block: 'center'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue