diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-01 20:02:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 20:02:19 +0200 |
commit | d8fe9ad8645494e298ae6b35ecb3162d3e85cf54 (patch) | |
tree | 261bc68ca171880ee832ad0a0f74cd9d9909d9de | |
parent | e75bd53fb23e4bce417e774cb0de474f46266a05 (diff) | |
parent | 924658a849444312f660f00092b3a60f70e6b891 (diff) |
Merge pull request #62595 from python273/patch-1
-rw-r--r-- | editor/plugins/asset_library_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index e9435faae1..e9547e02e8 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -291,12 +291,15 @@ EditorAssetLibraryItemDescription::EditorAssetLibraryItemDescription() { hbox->add_child(previews_vbox); previews_vbox->add_theme_constant_override("separation", 15 * EDSCALE); previews_vbox->set_v_size_flags(Control::SIZE_EXPAND_FILL); + previews_vbox->set_h_size_flags(Control::SIZE_EXPAND_FILL); preview = memnew(TextureRect); previews_vbox->add_child(preview); preview->set_ignore_texture_size(true); preview->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED); preview->set_custom_minimum_size(Size2(640 * EDSCALE, 345 * EDSCALE)); + preview->set_v_size_flags(Control::SIZE_EXPAND_FILL); + preview->set_h_size_flags(Control::SIZE_EXPAND_FILL); previews_bg = memnew(PanelContainer); previews_vbox->add_child(previews_bg); |