You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Changed how min/max icon size in ItemList works and replaced it by a fixed size. Fixes many issues, closes #4907
This commit is contained in:
@@ -443,7 +443,7 @@ void EditorFileDialog::update_file_list() {
|
||||
item_list->set_icon_mode(ItemList::ICON_MODE_TOP);
|
||||
item_list->set_fixed_column_width(thumbnail_size*3/2);
|
||||
item_list->set_max_text_lines(2);
|
||||
item_list->set_min_icon_size(Size2(thumbnail_size,thumbnail_size));
|
||||
item_list->set_fixed_icon_size(Size2(thumbnail_size,thumbnail_size));
|
||||
|
||||
if (!has_icon("ResizedFolder","EditorIcons")) {
|
||||
Ref<ImageTexture> folder = get_icon("FolderBig","EditorIcons");
|
||||
@@ -475,7 +475,7 @@ void EditorFileDialog::update_file_list() {
|
||||
item_list->set_max_columns(1);
|
||||
item_list->set_max_text_lines(1);
|
||||
item_list->set_fixed_column_width(0);
|
||||
item_list->set_min_icon_size(Size2());
|
||||
item_list->set_fixed_icon_size(Size2());
|
||||
if (preview->get_texture().is_valid())
|
||||
preview_vb->show();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user