summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2019-12-16 09:24:02 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2019-12-16 09:24:02 +0800
commita3ab1cb6983bf138e23070fa8d428c9e6505dab0 (patch)
tree118c261db29fded2743745bdfe83a5ee9b116dab
parentd8d96c9fa78395db8cf8eca65439ee1dfe18a424 (diff)
Center error icon vertically in AssetLib
-rw-r--r--editor/plugins/asset_library_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp
index b261ca4712..ce31714e0c 100644
--- a/editor/plugins/asset_library_editor_plugin.cpp
+++ b/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;