fix: 工具栏初始位置改为屏幕顶部
This commit is contained in:
@@ -14,7 +14,7 @@ export function createMainWindow(): BrowserWindow {
|
|||||||
|
|
||||||
mainWindow = new BrowserWindow({
|
mainWindow = new BrowserWindow({
|
||||||
x: Math.round(targetDisplay.bounds.x + targetDisplay.bounds.width / 2 - 300),
|
x: Math.round(targetDisplay.bounds.x + targetDisplay.bounds.width / 2 - 300),
|
||||||
y: targetDisplay.bounds.y + 100,
|
y: targetDisplay.bounds.y,
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 64,
|
height: 64,
|
||||||
frame: false,
|
frame: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user