godotengine / godotengine/godot

Tree Node arrow Icons not sizing correctly

Open
#102,434 4 comments 0 reactions 0 assignees View on GitHub
bug topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

4.4 Beta 2

### System information

Windows 11

### Issue description

The included arrows for the Tree Node are incredibly small. When replacing the arrow icons, the width stays the same as before leaving the icons half off the screen. Here is an image of the original, and then one with the new arrow icons.
I even made new icons that have padding on the right. Still only shows half of the arrow.

![Image](https://github.com/user-attachments/assets/a26acd41-f938-41de-b093-e3fda699f439)

Here is the added icons

![Image](https://github.com/user-attachments/assets/a963fb7e-b3cd-4b94-8846-10d0c5b7447e)

### Steps to reproduce

Create tree and add treeitems.
No matter the size of the icon, the left border doesn't adjust.

### Minimal reproduction project (MRP)

[tree.zip](https://github.com/user-attachments/files/18663395/tree.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached tree.zip minimal reproduction on Windows 11 and inspect how Tree Nodes size and display their arrow icons. Compare the included icons with replacement icons of different widths. Done means replacement arrows are fully visible and the Tree Node border or reserved arrow area adjusts to the icon size.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.