-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Keep the editor help search dialog inside the screen #79814
base: master
Are you sure you want to change the base?
Keep the editor help search dialog inside the screen #79814
Conversation
4a585e7
to
95de84e
Compare
I talked about that possibility here, but I didn't know that there are already PRs to fix it. Surely better than this PR. |
I don't entirely understand why having a different size would be a problem to begin with. Windows can exceed resolution bounds just fine. While the usability of such windows can be questioned, there shouldn't be a crash/freeze/other negative side effects. So that's one problem. Another is why in case of #79187 the dialog appears on a wrong display to begin with. Was it placed there previously? Is it restored improperly? Do we also need to store the display index alongside the window rect? To be honest, I don't quite understand the steps from the OP and I don't have a second display to experiment myself. So if anyone could explain what's going on from the user perspective, I'd appreciate it. What I can say for certain is that we indeed shouldn't fix this just for the editor help dialog. We should fix it for every dialog whose |
This is a general problem with multiple windows and multiple screens. Often, the editor code that manages window and size assumes implicitly that there is only one window and that the positioning and screen size doesn't change. This was guaranteed until 4.1.
This is true, code editors and docks do have a centralized and more complex fallbacks (in
No, it's not fine. If a resolution change put the window out of screen, and the window is modal, you can't recover your editor. |
Windows exceeding resolution in size is fine. Windows moving out of the visible space completely is not fine. I was referring to the former.
This doesn't explain a freeze that the user describes, since on their screenshots the help window is still visible and thus the editor is recoverable. Still, I think all restorable dialogs like that should be fixed together and anchored to their contextually relevant parent windows rather than arbitrary places on screen. |
Superseded by #79617. |
Or maybe not, based on #79187 (comment). |
Fixes #79187 as described here
I can't test the conditions described in #79187, so testing appreciated.