This commit is contained in:
Joao Moreno
2018-06-15 09:27:03 +02:00
parent 709c24bef5
commit 1d9150ca8d
2 changed files with 7 additions and 24 deletions
+1 -2
View File
@@ -192,11 +192,10 @@ export class Grid<T extends IView> implements IDisposable {
get minimumWidth(): number { return this.gridview.minimumWidth; }
get minimumHeight(): number { return this.gridview.minimumHeight; }
get maximumWidth(): number { return this.gridview.maximumWidth; }
get maximumHeight(): number { return this.gridview.maximumHeight; }
public sashResetSizing: Sizing = Sizing.Distribute;
sashResetSizing: Sizing = Sizing.Distribute;
constructor(container: HTMLElement, view: T, options: IGridOptions = {}) {
this.gridview = new GridView(container, options);
+6 -22
View File
@@ -459,29 +459,13 @@ export class GridView implements IDisposable {
this.root.orthogonalLayout(orthogonalSize);
}
get width(): number {
return this.root.width;
}
get width(): number { return this.root.width; }
get height(): number { return this.root.height; }
get height(): number {
return this.root.height;
}
get minimumWidth(): number {
return this.root.minimumWidth;
}
get minimumHeight(): number {
return this.root.minimumHeight;
}
get maximumWidth(): number {
return this.root.maximumHeight;
}
get maximumHeight(): number {
return this.root.maximumHeight;
}
get minimumWidth(): number { return this.root.minimumWidth; }
get minimumHeight(): number { return this.root.minimumHeight; }
get maximumWidth(): number { return this.root.maximumHeight; }
get maximumHeight(): number { return this.root.maximumHeight; }
constructor(container: HTMLElement, options: IGridViewOptions = {}) {
this.element = append(container, $('.monaco-grid-view'));