mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve main window position https://github.com/siyuan-note/siyuan/issues/11437
This commit is contained in:
parent
f7d23b41fd
commit
1e2765962e
1 changed files with 2 additions and 2 deletions
|
|
@ -278,10 +278,10 @@ const initMainWindow = () => {
|
||||||
windowState.width = Math.min(defaultWidth, workArea.width);
|
windowState.width = Math.min(defaultWidth, workArea.width);
|
||||||
windowState.height = Math.min(defaultHeight, workArea.height);
|
windowState.height = Math.min(defaultHeight, workArea.height);
|
||||||
}
|
}
|
||||||
if (x > workArea.width) {
|
if (x >= workArea.width * 0.8) {
|
||||||
x = 0;
|
x = 0;
|
||||||
}
|
}
|
||||||
if (y > workArea.height) {
|
if (y >= workArea.height * 0.8) {
|
||||||
y = 0;
|
y = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue