mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #288 from Tyriar/278_sync_scrollbar_after_reset
Sync scroll bar after reset
This commit is contained in:
@@ -3207,6 +3207,7 @@ Terminal.prototype.reset = function() {
|
||||
Terminal.call(this, this.options);
|
||||
this.customKeydownHandler = customKeydownHandler;
|
||||
this.refresh(0, this.rows - 1);
|
||||
this.viewport.syncScrollArea();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@ describe('xterm.js', function() {
|
||||
beforeEach(function () {
|
||||
xterm = new Terminal();
|
||||
xterm.refresh = function(){};
|
||||
xterm.viewport = {
|
||||
syncScrollArea: function(){}
|
||||
};
|
||||
});
|
||||
|
||||
describe('getOption', function() {
|
||||
|
||||
Reference in New Issue
Block a user