minheight has been set to 55 for scrolling (#8851)

* minheight has been set to 50 for scrolling

* removed spaces

* changed value to 55 as it looked better

* removed comment
This commit is contained in:
Alex Ma
2020-01-22 16:42:41 -08:00
committed by GitHub
parent eb0ee387ec
commit 76967d9467
2 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ export class EditDataEditor extends BaseEditor {
public static ID: string = 'workbench.editor.editDataEditor';
// The minimum width/height of the editors hosted in the QueryEditor
private readonly _minEditorSize: number = 220;
private readonly _minEditorSize: number = 55;
private _sash: IFlexibleSash;
private _dimension: DOM.Dimension;
@@ -564,7 +564,7 @@ export class EditDataEditor extends BaseEditor {
if (!this._dimension) {
return;
}
this._sash.setDimenesion(this._dimension);
this._sash.setDimension(this._dimension);
}
/**

View File

@@ -22,7 +22,7 @@ export interface IFlexibleSash {
getSplitPoint(): number;
// Sets the Dimension containing the height and width of the editor this sash will separate
setDimenesion(dimension: Dimension);
setDimension(dimension: Dimension);
// Re-calculates the width and height of the sash
layout(): void;
@@ -98,7 +98,7 @@ export class HorizontalFlexibleSash extends Disposable implements IHorizontalSas
return this.dimension.width;
}
public setDimenesion(dimension: Dimension) {
public setDimension(dimension: Dimension) {
this.dimension = dimension;
this.compute(this.ratio);
}