Skip to content
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

Dynamic option fields don't scale width correctly on hiDPI displays #2066

Closed
Atlinx opened this issue Feb 3, 2024 · 0 comments
Closed

Dynamic option fields don't scale width correctly on hiDPI displays #2066

Atlinx opened this issue Feb 3, 2024 · 0 comments
Labels
Bug 🐞 Something isn't working UI/UX ✏

Comments

@Atlinx
Copy link
Contributor

Atlinx commented Feb 3, 2024

The problem

Describe the bug
Dynamic option fields don't scale the width of the recommendations box correctly on hiDPI displays. It seems to underestimate the width, leading to text clipping.

To Reproduce
Steps to reproduce the behavior:

  1. Launch Godot on a computer with a hiDPI display
  2. Add a variable named "test_var"
  3. Add a Set Variable node
  4. Click on the dynamic option field for setting the variable name, and see the recommended box clipping the text

Expected behavior
The width should be wide enough to not clip text.

Screenshots
image

System (please complete the following information):

  • OS: Windows
  • Godot Version: 4.2.1.stable.official
  • Dialogic Version: 2.x (master)

Solutions

Workaround
N/A

Possible fixes
The code for field_options_dynamic might need to apply editor_scale somewhere in the line_length calculation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Something isn't working UI/UX ✏
Projects
None yet
Development

No branches or pull requests

2 participants