From 37ff5dd99e4d2bf32b6f0a30d7bebaf2100c8e37 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Fri, 21 Nov 2025 11:31:57 -0300 Subject: [PATCH] Fix extra spacing in author names when opening the asset dialog --- editor/asset_library/asset_library_editor_plugin.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/editor/asset_library/asset_library_editor_plugin.cpp b/editor/asset_library/asset_library_editor_plugin.cpp index 42de15d8b6b..ad2f5601efd 100644 --- a/editor/asset_library/asset_library_editor_plugin.cpp +++ b/editor/asset_library/asset_library_editor_plugin.cpp @@ -90,12 +90,14 @@ void EditorAssetLibraryItem::_notification(int p_what) { author->add_theme_color_override("font_hover_color", Color(0.5, 0.5, 0.5)); } - calculate_misc_links_ratio(); + _calculate_misc_links_size(); } break; - case NOTIFICATION_THEME_CHANGED: case NOTIFICATION_TRANSLATION_CHANGED: { _calculate_misc_links_size(); + } break; + + case NOTIFICATION_RESIZED: { calculate_misc_links_ratio(); } break; } @@ -112,6 +114,8 @@ void EditorAssetLibraryItem::_calculate_misc_links_size() { const int font_size = get_theme_font_size(SceneStringName(font_size), SNAME("Label")); text_buf->add_string(price->get_text(), font, font_size); price_width = text_buf->get_line_width(); + + calculate_misc_links_ratio(); } void EditorAssetLibraryItem::calculate_misc_links_ratio() { @@ -289,6 +293,10 @@ void EditorAssetLibraryItemDescription::_notification(int p_what) { case NOTIFICATION_THEME_CHANGED: { previews_bg->add_theme_style_override(SceneStringName(panel), previews->get_theme_stylebox(CoreStringName(normal), SNAME("TextEdit"))); } break; + + case NOTIFICATION_POST_POPUP: { + callable_mp(item, &EditorAssetLibraryItem::calculate_misc_links_ratio).call_deferred(); + } break; } }