Skip to content

Commit cbb9365

Browse files
committed
Revert fix for microsoft#78167 which causes a perf issue
Revert "fix microsoft#78768" This reverts commit b6a4220. Related to microsoft#77856 and microsoft#78167 Revert "fixes microsoft#78167" This reverts commit a417a06. Related to microsoft#77856 and microsoft#78167
1 parent a77ea7f commit cbb9365

3 files changed

Lines changed: 2 additions & 10 deletions

File tree

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

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

427427
this.splitview.setViewVisible(index, visible);
428-
this._onDidChange.fire(undefined);
429428
}
430429

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@
7272
.monaco-split-view2.separator-border.vertical > .split-view-container > .split-view-view:not(:first-child)::before {
7373
height: 1px;
7474
width: 100%;
75-
}
75+
}

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,7 @@ abstract class ViewItem {
125125
}
126126
}
127127

128-
layout(_orthogonalSize: number | undefined): void {
129-
this.container.scrollTop = 0;
130-
this.container.scrollLeft = 0;
131-
}
132-
133-
layoutView(orthogonalSize: number | undefined): void {
128+
layout(orthogonalSize: number | undefined): void {
134129
this.view.layout(this.size, orthogonalSize);
135130
}
136131

@@ -145,7 +140,6 @@ class VerticalViewItem extends ViewItem {
145140
layout(orthogonalSize: number | undefined): void {
146141
super.layout(orthogonalSize);
147142
this.container.style.height = `${this.size}px`;
148-
this.layoutView(orthogonalSize);
149143
}
150144
}
151145

@@ -154,7 +148,6 @@ class HorizontalViewItem extends ViewItem {
154148
layout(orthogonalSize: number | undefined): void {
155149
super.layout(orthogonalSize);
156150
this.container.style.width = `${this.size}px`;
157-
this.layoutView(orthogonalSize);
158151
}
159152
}
160153

0 commit comments

Comments
 (0)