-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window size and position is incorrect when the app is launched. #868
Comments
I have the same Issue. My temp fix is to set the windows-size in the config. First put it at 1000x1000 or something else. After that restart the app. Than you need to resize it with the config and dont touch the window. Sorry for my bad english :) |
Could this be because you have a 125% zoom on the laptop? does this still happen if you set your zoom to 100%? |
I have the same issue as the person with the laptop but I have it on my desktop PC I have no problems on my first monitor with a 100% zoom but on my second monitor with 150% zoom I have the same problem EDIT: Same for the position, on the second monitor. |
Can you try changing the zoom to 100% and see if it fixes the issue? If it does, then this issue might be that #548 doesn't take in account zoom level. Will have to see if there are some calculations to be made using https://www.electronjs.org/docs/latest/api/structures/display I'm currently unsure what the updated calculation would be, any help would be appreciated |
I put the second screen on 100% and it got fixed. EDIT: I put it pack and the size and position changed again |
I dont know if it helps but I think I found a Stack Overflow thread about it. |
I don't think this really help because we don't want to disable zooming inside the app right? I think this issue happen because this part doesn't take into account zoom factor somehow: Lines 162 to 167 in 7bdbab5
I'm not sure which of those value is affected by the zoom/scale factor. have to do some manual testing. |
Fixed at #1159 |
I use a Windows laptop with multiple displays.
When I restart the app, it changes size and position.
I don't know Electron, but I think it stems from the way the display object is retrieved.
youtube-music/index.js
Lines 159 to 160 in 1f5f597
My display scale settings may also have an effect.
Here is a screenshot of the details.
(Please note that my locale in the screenshots is Japanese.)
My display settings
This problem only occurs when the app is placed on a laptop display and not on any other displays.
Scale and layout
Size and position before restart
Size and position after restart
config.json
The text was updated successfully, but these errors were encountered: