Commit d68590b7 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #493 from cdetrio/master

fix scrollTop in instruction list
parents 3069e36c 58ee75fd
......@@ -50,7 +50,7 @@ CodeListView.prototype.indexChanged = function (index) {
if (this.itemSelected.firstChild) {
this.itemSelected.firstChild.setAttribute('style', ui.formatCss({'margin-left': '2px'}))
}
this.codeView.scrollTop = this.itemSelected.offsetTop - parseInt(this.codeView.offsetHeight)
this.codeView.scrollTop = this.itemSelected.offsetTop - parseInt(this.codeView.offsetTop)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment