mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
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:
@@ -45,7 +45,7 @@ export class EditDataEditor extends BaseEditor {
|
|||||||
public static ID: string = 'workbench.editor.editDataEditor';
|
public static ID: string = 'workbench.editor.editDataEditor';
|
||||||
|
|
||||||
// The minimum width/height of the editors hosted in the QueryEditor
|
// 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 _sash: IFlexibleSash;
|
||||||
private _dimension: DOM.Dimension;
|
private _dimension: DOM.Dimension;
|
||||||
@@ -564,7 +564,7 @@ export class EditDataEditor extends BaseEditor {
|
|||||||
if (!this._dimension) {
|
if (!this._dimension) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._sash.setDimenesion(this._dimension);
|
this._sash.setDimension(this._dimension);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export interface IFlexibleSash {
|
|||||||
getSplitPoint(): number;
|
getSplitPoint(): number;
|
||||||
|
|
||||||
// Sets the Dimension containing the height and width of the editor this sash will separate
|
// 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
|
// Re-calculates the width and height of the sash
|
||||||
layout(): void;
|
layout(): void;
|
||||||
@@ -98,7 +98,7 @@ export class HorizontalFlexibleSash extends Disposable implements IHorizontalSas
|
|||||||
return this.dimension.width;
|
return this.dimension.width;
|
||||||
}
|
}
|
||||||
|
|
||||||
public setDimenesion(dimension: Dimension) {
|
public setDimension(dimension: Dimension) {
|
||||||
this.dimension = dimension;
|
this.dimension = dimension;
|
||||||
this.compute(this.ratio);
|
this.compute(this.ratio);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user