-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Check and fix window dimensions and position when the application start #2476
Comments
Can I take on the issue? |
Yes please, go ahead. |
@daukadolt any update? It would be nice to keep us apprised. |
@tessus hi! Sorry for inactivity. Due to force majeure could not start until recently. |
Is the issue still open? |
Yep, a PR is already available. |
For those experiencing this issue I've realised that when I open joplin there's a very tiny section of the window that appears on the left-hand side of my screen. I was able to expand the window to full size using this. |
…lication starts (#2514) * ElectronClient window minimum size set Hardcoded minimum width and height of 100 px. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com> * Set Electron window position if outside displays Set Electron window at the center of primaryDisplay if BrowserWindow is not on any displays. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com> * Set Electron window default size dependent on screen Set Electron window defaultWidth, defaultHeight to 80% of primary display workArea width, height, respectively. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com> * Hotfixing Electron defaultHeight depending on width, not height Hotfix of a typo that calculates Electron app's default height at first run using primary screen's width, not height. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com> * Refactoring Electron app defaultWidth/defaultHeight setup Setting defaultWidth/defaultHeight directly without extra variables. Rounding defaultWidth/defaultHeight. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com>
It happens that the Joplin window, when starting, is off-screen or has invalid dimensions, like 1x1 pixel.
After the app is started (1 or 2 seconds after to make sure it's properly initialised), there should be two checks:
If it's not, the window should be moved to the right location and set to the right dimensions.
You will need to make sure that it works also when the "Start minimised" option is enabled in the settings. In other words, the code shouldn't make the window visible when it should in fact be minimised.
The text was updated successfully, but these errors were encountered: