Skip to content

Commit e8c6bfc

Browse files
committed
Revert "fixes microsoft#78167"
Breaks custom titlebar and menu This reverts commit a417a06.
1 parent 4dfac13 commit e8c6bfc

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/vs/base/browser/ui/grid/gridview.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ class BranchNode implements ISplitView, IDisposable {
348348
}
349349

350350
this.splitview.setViewVisible(index, visible);
351-
this._onDidChange.fire(undefined);
352351
}
353352

354353
getChildCachedVisibleSize(index: number): number | undefined {

src/vs/base/browser/ui/splitview/splitview.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
white-space: initial;
4040
flex: none;
4141
position: relative;
42-
overflow: hidden;
4342
}
4443

4544
.monaco-split-view2 > .split-view-container > .split-view-view:not(.visible) {
@@ -73,4 +72,4 @@
7372
.monaco-split-view2.separator-border.vertical > .split-view-container > .split-view-view:not(:first-child)::before {
7473
height: 1px;
7574
width: 100%;
76-
}
75+
}

src/vs/base/browser/ui/splitview/splitview.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,7 @@ abstract class ViewItem {
125125
dom.addClass(container, 'visible');
126126
}
127127

128-
layout(): void {
129-
this.container.scrollTop = 0;
130-
this.container.scrollLeft = 0;
131-
}
128+
abstract layout(): void;
132129

133130
layoutView(orientation: Orientation): void {
134131
this.view.layout(this.size, orientation);
@@ -143,7 +140,6 @@ abstract class ViewItem {
143140
class VerticalViewItem extends ViewItem {
144141

145142
layout(): void {
146-
super.layout();
147143
this.container.style.height = `${this.size}px`;
148144
this.layoutView(Orientation.VERTICAL);
149145
}
@@ -152,7 +148,6 @@ class VerticalViewItem extends ViewItem {
152148
class HorizontalViewItem extends ViewItem {
153149

154150
layout(): void {
155-
super.layout();
156151
this.container.style.width = `${this.size}px`;
157152
this.layoutView(Orientation.HORIZONTAL);
158153
}

0 commit comments

Comments
 (0)