Fixed windows sizing on wayland

This commit is contained in:
Observer KRypt0n_ 2022-01-08 17:11:13 +02:00
parent d5b581007a
commit 8ec4765a5b
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
5 changed files with 10 additions and 6 deletions

View file

@ -8,12 +8,6 @@ body
-webkit-user-select: none
cursor: default
img.background
position: absolute
width: 100%
height: 100%
::-webkit-scrollbar
width: 10px

View file

@ -1,5 +1,11 @@
@import "basic"
img.background
position: absolute
width: 100%
height: 100%
#info
position: absolute

View file

@ -174,6 +174,7 @@
// Do some stuff when all the content will be loaded
onMount(() => {
Window.current.show();
Window.current.setSize({ width: 900, height: 600 });
Window.current.center(900, 600);
});

View file

@ -20,6 +20,7 @@
onMount(() => {
Window.current.show();
Window.current.setSize({ width: 300, height: 400 });
Window.current.center(300, 400);
});

View file

@ -87,6 +87,8 @@ export default class State
IPC.write('launcher-loaded');
Window.current.show();
Window.current.setSize({ width: 1280, height: 700 });
Window.current.center(1280, 700);
});
}