Fixed issue with rendering of initially empty documents
This commit is contained in:
parent
7d74739262
commit
deb757ae3f
1 changed files with 1 additions and 1 deletions
|
|
@ -399,7 +399,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
|
||||
var lineCount = Math.ceil(minHeight / this.lineHeight);
|
||||
var firstRow = Math.max(0, Math.round((this.scrollTop - offset) / this.lineHeight));
|
||||
var lastRow = Math.min(this.lines.length, firstRow + lineCount) - 1;
|
||||
var lastRow = Math.max(0, Math.min(this.lines.length, firstRow + lineCount) - 1);
|
||||
|
||||
var layerConfig = this.layerConfig = {
|
||||
width : longestLine,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue