mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Provide a default result grid height (#5710)
This commit is contained in:
@@ -366,13 +366,14 @@ export class QueryEditor extends BaseEditor {
|
||||
|
||||
private addResultsEditor() {
|
||||
if (!this.resultsVisible) {
|
||||
let initialViewSize = Math.round(Math.max(this.dimension.height * 0.7, this.dimension.height - 150));
|
||||
this.splitview.addView({
|
||||
element: this.resultsEditorContainer,
|
||||
layout: size => this.resultsEditor && this.resultsEditor.layout(new DOM.Dimension(this.dimension.width, size)),
|
||||
minimumSize: 0,
|
||||
maximumSize: Number.POSITIVE_INFINITY,
|
||||
onDidChange: Event.None
|
||||
}, Sizing.Distribute);
|
||||
}, initialViewSize);
|
||||
this.resultsVisible = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user