Skip to content

Commit ef22600

Browse files
committed
Fix edge-case error in renderVisible when render is called before console is registered.
1 parent 1bf6ff8 commit ef22600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/editor/scroller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ Scroller.prototype.requestRefresh = function(){
7878
};
7979

8080
Scroller.prototype._renderVisible = function(){
81-
var top = this.console.scrollTop;
8281
this.animateRequest = null;
8382
if(this.dirty && this.console){
83+
var top = this.console.scrollTop;
8484
if(this.sticky){
8585
this.startPosition = Math.max(0, this.lines.length - this.minVisible);
8686
}

0 commit comments

Comments
 (0)