panel: fix DOM order and better background color

This commit is contained in:
Benjamin Pasero
2016-01-20 12:01:34 +01:00
parent bf47ea198e
commit 6b032e3615
3 changed files with 2 additions and 11 deletions
@@ -80,13 +80,6 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
return this.openComposite(id, focus);
}
public createTitleArea(parent: Builder): Builder {
const result = super.createTitleArea(parent);
result.addClass('monaco-editor-background');
return result;
}
private get activePanel(): IPanel {
return this.getActivePanel();
}
+2 -2
View File
@@ -752,8 +752,8 @@ export class Workbench implements IPartService {
// Create Parts
this.createActivityBarPart();
this.createSidebarPart();
this.createPanelPart();
this.createEditorPart();
this.createPanelPart();
this.createStatusbarPart();
// Create QuickOpen
@@ -804,7 +804,7 @@ export class Workbench implements IPartService {
private createPanelPart(): void {
let panelPartContainer = $(this.workbench)
.div({
'class': ['part', 'panel'],
'class': ['part', 'panel', 'monaco-editor-background'],
id: Identifiers.PANEL_PART
});
@@ -97,8 +97,6 @@ export class Repl extends Panel {
public create(parent: builder.Builder): TPromise<void> {
super.create(parent);
const container = dom.append(parent.getHTMLElement(), $('.repl'));
// inherit the background color from selected theme.
dom.addClass(container, 'monaco-editor-background');
this.treeContainer = dom.append(container, $('.repl-tree'));
const replInputContainer = dom.append(container, $(platform.isWindows ? '.repl-input-wrapper.windows' : platform.isMacintosh ? '.repl-input-wrapper.mac' : '.repl-input-wrapper.linux'));
this.replInput = <HTMLInputElement>dom.append(replInputContainer, $('input.repl-input'));