Skip to content

Commit 35189f0

Browse files
committed
Fix traffic lights x position
1 parent 2d08400 commit 35189f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/platform/windows/electron-main/windowImpl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,8 @@ export class CodeWindow extends Disposable implements ICodeWindow {
11001100

11011101
// macOS: traffic lights
11021102
else if (isMacintosh && options.height !== undefined) {
1103-
this._win.setTrafficLightPosition({ x: 7, y: (options.height - 15) / 2 }); // 15px is the height of the traffic lights
1103+
const verticalOffset = (options.height - 15) / 2; // 15px is the height of the traffic lights
1104+
this._win.setTrafficLightPosition({ x: verticalOffset, y: verticalOffset });
11041105
}
11051106
}
11061107

0 commit comments

Comments
 (0)