1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Fix ThemeEditor being too wide for small screen or minimized window

This commit is contained in:
arkology
2025-03-16 14:16:03 +03:00
parent fde0616a0e
commit 84e1ed8884
2 changed files with 3 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ ThemeEditorPreview::ThemeEditorPreview() {
picker_button->connect(SceneStringName(pressed), callable_mp(this, &ThemeEditorPreview::_picker_button_cbk));
MarginContainer *preview_body = memnew(MarginContainer);
preview_body->set_custom_minimum_size(Size2(480, 0) * EDSCALE);
preview_body->set_custom_minimum_size(Size2(200, 0) * EDSCALE);
preview_body->set_v_size_flags(SIZE_EXPAND_FILL);
add_child(preview_body);