-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Fix Sprite2D
dialog size for smaller screen device
#97199
Conversation
I feel like we should change window size instead of the Since if you scale the UI by 200%, you will need to make another fix to fit your screen. |
I have no idea how to do that. Could you pls review and suggest the change pls |
The easiest solution would be to set the minimum size height even lower 😅 (im joking) |
3bbfc78
to
0033348
Compare
This went horribly debug_uv->set_size(Size2(800, 400) * EDSCALE);
// debug_uv->set_custom_minimum_size(Size2(800, 500) * EDSCALE); |
Yes, it's because the Window.popup() was called without setting the window size, everything will shrink to it's minimum size, if you need some help, just search |
This one?
Tried something like this before. Didn't quite work. Maybe I'll try again |
oh, I was searching for popup as a full word before. Try this and see if you can freely resize the window, it should remember it's last size everytime popup is called. If the |
Did that in shahriarlabib000@9b82214 right now. Works fine for most part But the popup looks too small at 100% 4.3now |
0033348
to
a784af2
Compare
a784af2
to
30ad1f0
Compare
Before it was setting just the control minimum size, so the other Now we are setting the whole window size, so maybe we can increase the |
30ad1f0
to
4e916f1
Compare
I think following this
Also gives a similar result shahriarlabib000@41f4607 So should i just add them? Instead of changing the size? |
No, this change is just enough for fixing the issue, since it do already expand correctly and fills the popup
You're welcome ^^ |
Thanks! |
So my editor scale was 180% by default
Before
Now