[Bug]: Fullscreen size but not fullscreen, after restart of app
Checks before filing an issue
- [x] This issue doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
- [x] I have checked the issue tracker and have not found an issue that matches the one I'm filing.
- [x] This issue is not a troubleshooting question. Troubleshooting questions go here: https://forum.mattermost.com/c/trouble-shoot/16.
- [x] This issue is not a feature request. You can request features and make product suggestions here: https://mattermost.com/suggestions/.
- [x] This issue reproduces on the most recent stable version, or the most recent prerelease version of the Mattermost Desktop App.
- [x] I have read the contribution guidelines.
Mattermost Desktop Version
5.10.2
Operating System
Windows 11 x64
Mattermost Server Version
10.2.0
Steps to reproduce
- Open Mattermost Desktop
- Make it full screen
- Exit it fully from the tray
- Open it again
- Minimize it
- Open it again (maximize it)
The windows is not roughly the size of fullscreen, but it is not. and causes clicks at the corners and edges to affect the other windows behind.
This is especially painful when clicking on the far top-right corner to close it, but then you accidentally close the fullscreen window behind it.
Expected behavior
Fullscreen stays fullscreen after app restart, or maintains the smaller size that it normally would be. NOT nearly fullscreen size but not fullscreen
This screenshot is from the exact far top-right of the screen.
Observed behavior
Fullscreen size but not fullscreen.
This screenshot is from the exact far top-right of the screen.
As you can see, the windows has a small distance from the corner; sometimes it's more left (like the image), and sometimes more right (like below).
Log Output
---
Additional Information
Please. I'm hurting...
Does this reproduce on older versions of the app or is this a regression in the newest one? This could be an Electron bug.
Have you tried other machines? Curious if it's just one machine or multiple showing this behaviour.
Do you have some kind of scaling turned on? Electron doesn't often play well with scaling despite some fixes we've made.
I've had this bug for as long as I use the desktop app. At least 2 years. Always updated.
I use many apps that use Electron. None have this problem.
No scaling or related settings. Have this problem on all the 3 devices I use, and my colleagues too.
I searched "fullscreen" in the repo, it is used in many places. I think the code tries to remember its state, but doesn't remember that the state was "fullscreen". It shouldn't remember the dimensions when it is fullscreen; only the fact that it is fullscreen is needed.
Okay I seem to be able to reproduce this - though it doesn't happen in fullscreen mode it happens when you maximize (since you can't access the tray when you full screen).
Created a ticket: https://mattermost.atlassian.net/browse/MM-62680
This is sooooooo annoying! Can we please fix this?