fixed the issue with tab layout inside the dialog pane (#1515)

This commit is contained in:
Leila Lali
2018-05-30 13:02:19 -07:00
committed by GitHub
parent 05d7e24e66
commit f5b1bd0bc2
2 changed files with 7 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ export class DialogModal extends Modal {
}
public layout(): void {
this._dialogPane.layout();
}
public render() {

View File

@@ -16,7 +16,8 @@ import { bootstrapAngular } from 'sql/services/bootstrap/bootstrapService';
import { DialogModule } from 'sql/platform/dialog/dialog.module';
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 { Disposable } from 'vs/base/common/lifecycle';
import Event, { Emitter } from 'vs/base/common/event';
@@ -80,6 +81,10 @@ export class DialogPane extends Disposable implements IThemable {
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
*/