Skip to content

Commit 8b57f40

Browse files
committed
rearrange z-index in titlebar
refs microsoft#84806
1 parent 3c573be commit 8b57f40

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*/
3434
transform: translate3d(0px, 0px, 0px);
3535
position: relative;
36-
z-index: 1000;
36+
z-index: 1000; // move the entire titlebar above the workbench, except modals/dialogs
3737
}
3838

3939
.monaco-workbench .part.titlebar > .titlebar-drag-region {
@@ -43,10 +43,14 @@
4343
position: absolute;
4444
width: 100%;
4545
height: 100%;
46-
z-index: -1;
4746
-webkit-app-region: drag;
4847
}
4948

49+
.monaco-workbench .part.titlebar > .menubar {
50+
// Move above drag region since negative z-index on that element causes AA issues
51+
z-index: 1;
52+
}
53+
5054
.monaco-workbench .part.titlebar > .window-title {
5155
flex: 0 1 auto;
5256
font-size: 12px;
@@ -97,7 +101,7 @@
97101
width: 35px;
98102
height: 100%;
99103
position: relative;
100-
z-index: 3000;
104+
z-index: 2; // highest level of titlebar
101105
background-image: url('code-icon.svg');
102106
background-repeat: no-repeat;
103107
background-position: center center;
@@ -115,7 +119,7 @@
115119
flex-shrink: 0;
116120
text-align: center;
117121
position: relative;
118-
z-index: 3000;
122+
z-index: 2; // highest level of titlebar
119123
-webkit-app-region: no-drag;
120124
height: 100%;
121125
width: 138px;

0 commit comments

Comments
 (0)