Don't allow layout to be called with negative dimensions
This commit is contained in:
parent
db2c4cbe63
commit
fea66b2660
1 changed files with 1 additions and 1 deletions
|
@ -1604,7 +1604,7 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
|
|||
|
||||
// Forward to controls
|
||||
this.layoutTitleAreaControl(width);
|
||||
this.editorControl.layout(new Dimension(this.dimension.width, this.dimension.height - this.titleAreaControl.getPreferredHeight()));
|
||||
this.editorControl.layout(new Dimension(this.dimension.width, Math.max(0, this.dimension.height - this.titleAreaControl.getPreferredHeight())));
|
||||
}
|
||||
|
||||
private layoutTitleAreaControl(width: number): void {
|
||||
|
|
Loading…
Reference in a new issue