godot
godot copied to clipboard
ItemList text_overrun_behavior
Godot version
4.0 stable
System information
Windows 11
Issue description
text_overrun_behavior does not work with ItemList unless ICON_MODE_TOP is used
Steps to reproduce
extends Control
var ItemList1 = ItemList.new()
func _ready():
add_child(ItemList1)
var screen_size = get_tree().get_root().size
ItemList1.max_columns = 2
ItemList1.fixed_column_width = 50
#ItemList1.icon_mode = ItemList.ICON_MODE_TOP #<--- uncomment to see it working
ItemList1.set_size(Vector2(screen_size.x, screen_size.y / 2))
ItemList1.set_position(Vector2(0,screen_size.y / 2))
ItemList1.add_item("587289574238957298")
ItemList1.add_item("587289574238957298")