Skip to content

Commit

Permalink
aux window - fix watermark positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Nov 16, 2023
1 parent 510f5c2 commit 9ccc5d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/vs/workbench/browser/parts/editor/editorPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupsView {
});
}

private _top = 0;
private _left = 0;
private top = 0;
private left = 0;
private _contentDimension!: Dimension;
get contentDimension(): Dimension { return this._contentDimension; }

Expand Down Expand Up @@ -1292,8 +1292,8 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupsView {
}

override layout(width: number, height: number, top: number, left: number): void {
this._top = top;
this._left = left;
this.top = top;
this.left = left;

// Layout contents
const contentAreaSize = super.layoutContents(width, height).contentSize;
Expand All @@ -1302,7 +1302,7 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupsView {
this.doLayout(Dimension.lift(contentAreaSize), top, left);
}

private doLayout(dimension: Dimension, top = this._top, left = this._left): void {
private doLayout(dimension: Dimension, top = this.top, left = this.left): void {
this._contentDimension = dimension;

// Layout Grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
display: none;
}

.monaco-workbench .part.editor > .content:not(.empty) .editor-group-container.empty > .editor-group-watermark {
.monaco-workbench .part.editor > .content:not(.empty) .editor-group-container.empty > .editor-group-watermark,
.monaco-workbench .part.editor > .content.auxiliary .editor-group-container.empty > .editor-group-watermark {
max-width: 200px;
height: calc(100% - 70px);
}
Expand Down Expand Up @@ -72,7 +73,7 @@

.monaco-workbench .part.editor > .content:not(.empty) .editor-group-container > .editor-group-watermark > .shortcuts,
.monaco-workbench .part.editor > .content.auxiliary .editor-group-container > .editor-group-watermark > .shortcuts,
.monaco-workbench .part.editor > .content .editor-group-container.max-height-478px > .editor-group-watermark > .shortcuts {
.monaco-workbench .part.editor > .content .editor-group-container.max-height-478px > .editor-group-watermark > .shortcuts {
display: none;
}

Expand Down

0 comments on commit 9ccc5d6

Please sign in to comment.