mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Redraw background on text layer after a resize
This commit is contained in:
@@ -76,6 +76,11 @@ export abstract class BaseRenderLayer implements IRenderLayer {
|
||||
this._canvas.style.width = `${dim.canvasWidth}px`;
|
||||
this._canvas.style.height = `${dim.canvasHeight}px`;
|
||||
|
||||
// Draw the background if this is an opaque layer
|
||||
if (!this.alpha) {
|
||||
this.clearAll();
|
||||
}
|
||||
|
||||
if (charSizeChanged) {
|
||||
this._refreshCharAtlas(terminal, this.colors);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user