godot icon indicating copy to clipboard operation
godot copied to clipboard

ItemList text_overrun_behavior

Open agorangetek opened this issue 1 year ago • 0 comments

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")

agorangetek avatar Mar 06 '23 12:03 agorangetek