-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
can_drop_data with embedded subwindows disabled ignores viewport content_scale_factor #86493
Comments
I can confirm the problematic behavior in the following case on Windows 10:
In your issue description you write:
Am I correct to assume, that you mean "disabled" instead of "enabled"? I have tested #67531 and with that PR merged, the problem doesn't happen for me on Windows. Since that PR is not going to make it into 4.3, a dedicated solution would be helpful. |
Yes, that's what I meant - sorry. I corrected it above. The second video above demonstrates the issue.
I was hoping for that PR to be merged - do you know why it won't make it into 4.3? Do you have a sense of where in #67531 the change is made that fixes this issue? The backstory on how this issue came up: because of the blurry embedded tooltips, menus and popups that are confounding to fix per #54030, I devised a workaround using non-embedded subwindows that provides properly rendered 2x popup windows. This is done by not setting the popup |
Yes, feel free to pm me on Godot rocket chat for details - let's keep this issue about the bug itself.
Yes, see the linked PR. |
I'm also having problems with |
@zen14774 in order to find out, if this is the same problem, you have two options:
|
@Sauermann I tested the linked PR (it was easier than I expected!) and it does solve the issue, thanks! |
Tested versions
4.3dev1, 4.2rc
System information
MacOS
Issue description
With project setting
embed_subwindows
disabled andViewport.content_scale_factor
set to a value other than 1.0, such as when using a HiDPI display (MacOS Retina),_can_drop_data
is not calculated using the vp scale factor, and returns false when it should return true. This effects all Controls, such asTree
such that it's not possible to drag and drop tree items when the Viewport is scaled._drop_data
position is also incorrect by the same scale factor offset.With
embed subwindows
ENABLED:Screen.Recording.2023-12-24.at.2.28.32.PM.mov
with
embed_subwindows
DISABLED:Screen.Recording.2023-12-24.at.2.27.24.PM.mov
Steps to reproduce
See MRP.
Minimal reproduction project (MRP)
can_drop_data_with_non_embedded_subwindows_bug.zip
The text was updated successfully, but these errors were encountered: