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

Long-named nodes aren't fully revealed when scrolling horizontally in the scene tree #84015

Closed
chybby opened this issue Oct 26, 2023 · 1 comment

Comments

@chybby
Copy link
Contributor

chybby commented Oct 26, 2023

Godot version

v4.2.beta.custom_build [46cb7f9]

System information

Godot v4.2.beta (46cb7f9) - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 (NVIDIA; 31.0.15.4584) - Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 Threads)

Issue description

In the scene tree, when a node has a long name that doesn't fit in the width it is truncated (or clipped.)

Scrolling horizontally all the way to the right should reveal the whole name but it doesn't.

godot.windows.editor.dev.x86_64_VuUBJAeBGH.mp4

Steps to reproduce

Create a new scene.
Give the root node a long name.
Narrow the scene tree window, see that the name is truncated.
Scroll horizontally all the way to the right, see that you can't see the whole name and it is still truncated.

Minimal reproduction project

N/A

chybby added a commit to chybby/godot that referenced this issue Jan 30, 2024
1. Adds missing margins to `TreeItem::get_minimum_size`.
2. Sets minimum size dirty flags when an item is (un)collapsed.
3. Fixes depth calculation in `Tree::get_column_minimum_width` that was using
the next visible item's depth when calculating the current item's minimum width.

Fixes godotengine#84015.
@chybby
Copy link
Contributor Author

chybby commented Jun 26, 2024

Fixed by #91095

@chybby chybby closed this as completed Jun 26, 2024
@dalexeev dalexeev added this to the 4.3 milestone Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants