未验证 提交 83253517 编写于 作者: P Peng Lyu 提交者: GitHub

Merge pull request #84074 from rebornix/rebornix/fixCompactMenuSafari

Fix #83318. Absolute position compact menu in safari.
......@@ -159,6 +159,10 @@
outline: 0;
}
.menubar.compact {
flex-shrink: 0;
}
.menubar.compact > .menubar-menu-button {
width: 100%;
height: 100%;
......@@ -190,12 +194,14 @@
}
.menubar.compact .toolbar-toggle-more {
position: absolute;
left: 0px;
top: 0px;
background-position: center;
background-repeat: no-repeat;
background-size: 16px;
cursor: pointer;
width: 100%;
height: 100%;
}
.menubar .toolbar-toggle-more {
......
......@@ -450,6 +450,9 @@ export class ActivitybarPart extends Part implements IActivityBarService {
if (this.globalActivityActionBar) {
availableHeight -= (this.globalActivityActionBar.viewItems.length * ActivitybarPart.ACTION_HEIGHT); // adjust height for global actions showing
}
if (this.menubar) {
availableHeight -= this.menubar.clientHeight;
}
this.compositeBar.layout(new Dimension(width, availableHeight));
}
......
......@@ -41,3 +41,8 @@
width: 100%;
height: 35px;
}
.monaco-workbench .activitybar .menubar.compact .toolbar-toggle-more {
width: 100%;
height: 35px;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册