mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 12:23: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)
|
highlightLine(hash)
|
||||||
document.getElementsByClassName("highlight")[0].scrollIntoView({
|
document.getElementsByClassName("highlight")[0].scrollIntoView({
|
||||||
behavior: 'auto',
|
behavior: 'auto',
|
||||||
block: 'center',
|
block: 'center'
|
||||||
inline: 'start'
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
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