提交 a9355e5e 编写于 作者: J Johannes Rieken

Revert "remove layout trasher which seems unnecessary, #60031"

This reverts commit 9ac1a920.
上级 49ba5a4b
......@@ -557,6 +557,15 @@ export class WorkbenchLayout extends Disposable implements IVerticalSashLayoutPr
position(this.workbenchContainer, 0, 0, 0, 0, 'relative');
size(this.workbenchContainer, this.workbenchSize.width, this.workbenchSize.height);
// Bug on Chrome: Sometimes Chrome wants to scroll the workbench container on layout changes. The fix is to reset scrolling in this case.
const workbenchContainer = this.workbenchContainer;
if (workbenchContainer.scrollTop > 0) {
workbenchContainer.scrollTop = 0;
}
if (workbenchContainer.scrollLeft > 0) {
workbenchContainer.scrollLeft = 0;
}
// Title Part
const titleContainer = this.parts.titlebar.getContainer();
if (isTitlebarHidden) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册