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

Fixes TreeItem minimum width calculations #84186

Closed

Conversation

chybby
Copy link
Contributor

@chybby chybby commented Oct 30, 2023

  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.

Current:

godot.windows.editor.dev.x86_64_tr8DjP1Rml.mp4

After:

godot.windows.editor.dev.x86_64_xeqjPXrnb0.mp4

Fixes #84015.

@chybby chybby requested a review from a team as a code owner October 30, 2023 12:41
@YuriSizov YuriSizov added this to the 4.3 milestone Oct 30, 2023
scene/gui/tree.cpp Outdated Show resolved Hide resolved
scene/gui/tree.cpp Outdated Show resolved Hide resolved
@chybby chybby force-pushed the 84015-reveal-entire-long-names branch from 984cab3 to bae0cd4 Compare November 1, 2023 06:39
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 chybby force-pushed the 84015-reveal-entire-long-names branch from bae0cd4 to 3c1f1d6 Compare January 30, 2024 00:31
@chybby
Copy link
Contributor Author

chybby commented Jan 30, 2024

Just checked this was still an issue and synced to head.

@chybby
Copy link
Contributor Author

chybby commented Jun 26, 2024

Superseded by #91095

@chybby chybby closed this Jun 26, 2024
@chybby chybby deleted the 84015-reveal-entire-long-names branch June 26, 2024 12:03
@akien-mga akien-mga removed this from 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 this pull request may close these issues.

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