How to put ItemList into HBoxContainer

Godot Version

4.3

Question

`When I put ItemList into HBoxContainer, the width of ItemList will just become zero so the ItemList will not show up. How can I fix it?

Try setting the custom_minimum_size() width param.

The minimum size of the node’s bounding rectangle. If you set it to a value greater than (0, 0), the node’s bounding rectangle will always have at least this size.