浏览代码

Merge pull request #34375 from timothyqiu/vcenter

Center error icon vertically in AssetLib
Rémi Verschelde 5 年之前
父节点
当前提交
183eafcea8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/plugins/asset_library_editor_plugin.cpp

+ 1 - 0
editor/plugins/asset_library_editor_plugin.cpp

@@ -1494,6 +1494,7 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
 	error_label->add_color_override("color", get_color("error_color", "Editor"));
 	error_hb->add_child(error_label);
 	error_tr = memnew(TextureRect);
+	error_tr->set_v_size_flags(Control::SIZE_SHRINK_CENTER);
 	error_hb->add_child(error_tr);
 
 	description = NULL;