mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
fixed the issue with tab layout inside the dialog pane (#1515)
This commit is contained in:
@@ -48,7 +48,7 @@ export class DialogModal extends Modal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public layout(): void {
|
public layout(): void {
|
||||||
|
this._dialogPane.layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ import { bootstrapAngular } from 'sql/services/bootstrap/bootstrapService';
|
|||||||
import { DialogModule } from 'sql/platform/dialog/dialog.module';
|
import { DialogModule } from 'sql/platform/dialog/dialog.module';
|
||||||
import { DialogComponentParams } from 'sql/platform/dialog/dialogContainer.component';
|
import { DialogComponentParams } from 'sql/platform/dialog/dialogContainer.component';
|
||||||
|
|
||||||
import { Builder } from 'vs/base/browser/builder';
|
import * as DOM from 'vs/base/browser/dom';
|
||||||
|
import { Builder, Dimension } from 'vs/base/browser/builder';
|
||||||
import { IThemable } from 'vs/platform/theme/common/styler';
|
import { IThemable } from 'vs/platform/theme/common/styler';
|
||||||
import { Disposable } from 'vs/base/common/lifecycle';
|
import { Disposable } from 'vs/base/common/lifecycle';
|
||||||
import Event, { Emitter } from 'vs/base/common/event';
|
import Event, { Emitter } from 'vs/base/common/event';
|
||||||
@@ -80,6 +81,10 @@ export class DialogPane extends Disposable implements IThemable {
|
|||||||
return this._body;
|
return this._body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public layout(): void {
|
||||||
|
this._tabbedPanel.layout(new Dimension(DOM.getContentWidth(this._body), DOM.getContentHeight(this._body)));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bootstrap angular for the dialog's model view controller with the given model view ID
|
* Bootstrap angular for the dialog's model view controller with the given model view ID
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user