allow table width to be specified (#6196)

This commit is contained in:
Kim Santiago
2019-06-28 15:55:58 -07:00
committed by GitHub
parent eb3c6cadd2
commit e5256b0a61
2 changed files with 3 additions and 2 deletions

View File

@@ -325,7 +325,8 @@ export class SchemaCompareResult {
width: 150 width: 150
} }
], ],
CSSStyles: { 'left': '15px' } CSSStyles: { 'left': '15px' },
width: '98%'
}); });
this.splitView.addItem(this.differencesTable); this.splitView.addItem(this.differencesTable);

View File

@@ -26,7 +26,7 @@ import { Emitter, Event as vsEvent } from 'vs/base/common/event';
@Component({ @Component({
selector: 'modelview-table', selector: 'modelview-table',
template: ` template: `
<div #table style="width: 100%;height:100%" [style.font-size]="fontSize"></div> <div #table style="height:100%;" [style.font-size]="fontSize" [style.width]="width"></div>
` `
}) })
export default class TableComponent extends ComponentBase implements IComponent, OnDestroy, AfterViewInit { export default class TableComponent extends ComponentBase implements IComponent, OnDestroy, AfterViewInit {