mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
add listeners to make grid the largest (#2447)
This commit is contained in:
@@ -18,6 +18,7 @@ import * as UUID from 'vs/base/common/uuid';
|
|||||||
import { PanelViewlet } from 'vs/workbench/browser/parts/views/panelViewlet';
|
import { PanelViewlet } from 'vs/workbench/browser/parts/views/panelViewlet';
|
||||||
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
||||||
import * as DOM from 'vs/base/browser/dom';
|
import * as DOM from 'vs/base/browser/dom';
|
||||||
|
import { once } from 'vs/base/common/event';
|
||||||
|
|
||||||
class ResultsView implements IPanelView {
|
class ResultsView implements IPanelView {
|
||||||
private panelViewlet: PanelViewlet;
|
private panelViewlet: PanelViewlet;
|
||||||
@@ -38,6 +39,13 @@ class ResultsView implements IPanelView {
|
|||||||
{ panel: this.messagePanel, size: this.messagePanel.minimumSize, index: 1 }
|
{ panel: this.messagePanel, size: this.messagePanel.minimumSize, index: 1 }
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
let gridResizeList = this.gridPanel.onDidChange(e => {
|
||||||
|
this.panelViewlet.resizePanel(this.gridPanel, this.gridPanel.maximumSize);
|
||||||
|
});
|
||||||
|
// once the user changes the sash we should stop trying to resize the grid
|
||||||
|
once(this.panelViewlet.onDidSashChange)(e => {
|
||||||
|
gridResizeList.dispose();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
render(container: HTMLElement): void {
|
render(container: HTMLElement): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user