We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d08400 commit 35189f0Copy full SHA for 35189f0
src/vs/platform/windows/electron-main/windowImpl.ts
@@ -1100,7 +1100,8 @@ export class CodeWindow extends Disposable implements ICodeWindow {
1100
1101
// macOS: traffic lights
1102
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
+ const verticalOffset = (options.height - 15) / 2; // 15px is the height of the traffic lights
1104
+ this._win.setTrafficLightPosition({ x: verticalOffset, y: verticalOffset });
1105
}
1106
1107
0 commit comments