mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fixes #128051
This commit is contained in:
parent
7c1e41b091
commit
d0b9f5f8cf
|
@ -0,0 +1,9 @@
|
||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
.side-by-side-editor-container {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
|
@ -3,6 +3,7 @@
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
import 'vs/css!./media/sidebysideeditor';
|
||||||
import { Dimension, $, clearNode } from 'vs/base/browser/dom';
|
import { Dimension, $, clearNode } from 'vs/base/browser/dom';
|
||||||
import { Registry } from 'vs/platform/registry/common/platform';
|
import { Registry } from 'vs/platform/registry/common/platform';
|
||||||
import { IEditorControl, IEditorPane, IEditorOpenContext, EditorExtensions } from 'vs/workbench/common/editor';
|
import { IEditorControl, IEditorPane, IEditorOpenContext, EditorExtensions } from 'vs/workbench/common/editor';
|
||||||
|
@ -76,7 +77,7 @@ export class SideBySideEditor extends EditorPane {
|
||||||
const splitview = this.splitview = this._register(new SplitView(parent, { orientation: Orientation.HORIZONTAL }));
|
const splitview = this.splitview = this._register(new SplitView(parent, { orientation: Orientation.HORIZONTAL }));
|
||||||
this._register(this.splitview.onDidSashReset(() => splitview.distributeViewSizes()));
|
this._register(this.splitview.onDidSashReset(() => splitview.distributeViewSizes()));
|
||||||
|
|
||||||
this.secondaryEditorContainer = $('.secondary-editor-container');
|
this.secondaryEditorContainer = $('.side-by-side-editor-container.secondary');
|
||||||
this.splitview.addView({
|
this.splitview.addView({
|
||||||
element: this.secondaryEditorContainer,
|
element: this.secondaryEditorContainer,
|
||||||
layout: size => this.secondaryEditorPane?.layout(new Dimension(size, this.dimension.height)),
|
layout: size => this.secondaryEditorPane?.layout(new Dimension(size, this.dimension.height)),
|
||||||
|
@ -85,7 +86,7 @@ export class SideBySideEditor extends EditorPane {
|
||||||
onDidChange: Event.None
|
onDidChange: Event.None
|
||||||
}, Sizing.Distribute);
|
}, Sizing.Distribute);
|
||||||
|
|
||||||
this.primaryEditorContainer = $('.primary-editor-container');
|
this.primaryEditorContainer = $('.side-by-side-editor-container.primary');
|
||||||
this.splitview.addView({
|
this.splitview.addView({
|
||||||
element: this.primaryEditorContainer,
|
element: this.primaryEditorContainer,
|
||||||
layout: size => this.primaryEditorPane?.layout(new Dimension(size, this.dimension.height)),
|
layout: size => this.primaryEditorPane?.layout(new Dimension(size, this.dimension.height)),
|
||||||
|
|
Loading…
Reference in a new issue