Explicitly size selectionContainer to allow for more flexible layouts

This commit is contained in:
Daniel Imms
2017-06-07 11:48:31 -07:00
parent 72724abac8
commit 9c459aacc7
3 changed files with 4 additions and 5 deletions
+1
View File
@@ -57,6 +57,7 @@ export class Viewport {
if (rowHeightChanged || viewportHeightChanged) {
this.lastRecordedViewportHeight = this.terminal.rows;
this.viewportElement.style.height = this.charMeasure.height * this.terminal.rows + 'px';
this.terminal.selectionContainer.style.height = this.viewportElement.style.height;
}
this.scrollArea.style.height = (this.charMeasure.height * this.lastRecordedBufferLength) + 'px';
}