mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
fix h-scrollbar cutoff issue (#21396)
This commit is contained in:
@@ -342,6 +342,7 @@ export class QueryEditor extends EditorPane {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.taskbar.setContent(content);
|
this.taskbar.setContent(content);
|
||||||
|
this.layout(this.dimension);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async setInput(newInput: QueryEditorInput, options: IEditorOptions, context: IEditorOpenContext, token: CancellationToken): Promise<void> {
|
public override async setInput(newInput: QueryEditorInput, options: IEditorOptions, context: IEditorOpenContext, token: CancellationToken): Promise<void> {
|
||||||
@@ -507,10 +508,12 @@ export class QueryEditor extends EditorPane {
|
|||||||
* To be called when the container of this editor changes size.
|
* To be called when the container of this editor changes size.
|
||||||
*/
|
*/
|
||||||
public layout(dimension: DOM.Dimension): void {
|
public layout(dimension: DOM.Dimension): void {
|
||||||
this.dimension = dimension;
|
if (dimension?.height && dimension?.width && this.splitview) {
|
||||||
const queryEditorHeight = dimension.height - DOM.getTotalHeight(this.taskbar.getContainer());
|
this.dimension = dimension;
|
||||||
this.splitviewContainer.style.height = queryEditorHeight + 'px';
|
const queryEditorHeight = dimension.height - DOM.getTotalHeight(this.taskbar.getContainer());
|
||||||
this.splitview.layout(queryEditorHeight);
|
this.splitviewContainer.style.height = queryEditorHeight + 'px';
|
||||||
|
this.splitview.layout(queryEditorHeight);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user