Commit 58ee75fd authored by cdetrio's avatar cdetrio

fix scrollTop in instruction list

parent 3069e36c
...@@ -50,7 +50,7 @@ CodeListView.prototype.indexChanged = function (index) { ...@@ -50,7 +50,7 @@ CodeListView.prototype.indexChanged = function (index) {
if (this.itemSelected.firstChild) { if (this.itemSelected.firstChild) {
this.itemSelected.firstChild.setAttribute('style', ui.formatCss({'margin-left': '2px'})) 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