remove redundant getRowHeight method
This commit is contained in:
parent
2d0b6fc49f
commit
f976663150
4 changed files with 9 additions and 21 deletions
|
|
@ -115,10 +115,10 @@ MockRenderer.prototype.scrollToX = function(scrollTop) {};
|
|||
MockRenderer.prototype.scrollToY = function(scrollLeft) {};
|
||||
|
||||
MockRenderer.prototype.scrollToLine = function(line, center) {
|
||||
var lineHeight = { lineHeight: 16 };
|
||||
var lineHeight = 16;
|
||||
var row = 0;
|
||||
for (var l = 1; l < line; l++) {
|
||||
row += this.session.getRowHeight(lineHeight, l-1) / lineHeight.lineHeight;
|
||||
row += this.session.getRowLength(l-1);
|
||||
}
|
||||
|
||||
if (center) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue