-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Prevent off-screen controls in editor #73646
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. Curious to see what kind of side effects this may have.
I'm not sure what's the relation here. The issues with the editor going off screen are not about restricting its minimum size. Your change is useful if you try to resize the window below its minimum size, but if your display doesn't fit the window already, this won't help. Like the editor help buttons in French are just too long and won't wrap by themselves. So this is a nice change, but it doesn't close the linked issue.
I don't think we had that in Godot 3 👀 |
Well the user mostly complains that controls go outside the viewport. It's easy to replicate even in 3.5 godot.windows.opt.tools.64_JQ41pn2Iui.mp4As for the editor not fitting into small screens, I think we resolved most of it already. If not, each remaining case should be separate issue I think. This PR fixes the general issue of window hiding parts of the editor. |
Yes, but in most reports it happens in situations where users need the window/viewport to be smaller. And this PR simply makes that impossible. So the UX for those people is not solved here. I agree that it'd be nice to have a more comprehensive list of issues that cause the overflow, and on that premise alone I'd close the linked issue long time ago. So ¯\_(ツ)_/¯ |
I checked all issues closed as duplicate and these are kind of issues that this PR fixes: And these are resolved after rework of the problematic UIs: There is also #63247, which I think solved the remaining issues I haven't linked here. We didn't get any new reports after that. So at this point that issue can be safely closed IMO. |
Alright, agreed. |
Thanks! |
Cherry-picked for 4.0.3. |
when i found this bug, it disturbed me a little bit but not enough to open an issue about it. it's good that it's fixed now. |
Fixes #31133
Everyone was occupied with lack of space, while the original issue was about the fact that making the window too small would cover part of the interface:
Code_6wwxhMJIV8.mp4
The solution was to enable
wrap_controls
on the main window 🤷♂️godot.windows.editor.dev.x86_64_HqaG6W71dW.mp4
Half of the rightmost scrollbar is still cut for some reason, but this prevents making the window too small.