From 543598723726c6e39ec5b5857eeb2fdde5a0f503 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 11 Mar 2024 13:16:22 +0100 Subject: [PATCH] Fix the sizing of the LayeredTileSetScenesCollectionSourceEditor. --- .../layered_tile_set_scenes_collection_source_editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/layered_tile_map/editor/layered_tile_set_scenes_collection_source_editor.cpp b/modules/layered_tile_map/editor/layered_tile_set_scenes_collection_source_editor.cpp index 82b0440dc..9a89ead9d 100644 --- a/modules/layered_tile_map/editor/layered_tile_set_scenes_collection_source_editor.cpp +++ b/modules/layered_tile_map/editor/layered_tile_set_scenes_collection_source_editor.cpp @@ -539,6 +539,7 @@ LayeredTileSetScenesCollectionSourceEditor::LayeredTileSetScenesCollectionSource // Middle panel. ScrollContainer *middle_panel = memnew(ScrollContainer); + middle_panel->set_v_size_flags(SIZE_EXPAND_FILL); middle_panel->set_enable_h_scroll(false); middle_panel->set_custom_minimum_size(Size2(200, 0) * EDSCALE); split_container_right_side->add_child(middle_panel); @@ -557,6 +558,7 @@ LayeredTileSetScenesCollectionSourceEditor::LayeredTileSetScenesCollectionSource scenes_collection_source_inspector = memnew(EditorInspector); scenes_collection_source_inspector->set_enable_h_scroll(false); + scenes_collection_source_inspector->set_enable_v_scroll(false); scenes_collection_source_inspector->set_use_doc_hints(true); scenes_collection_source_inspector->add_inspector_plugin(memnew(LayeredTileSourceInspectorPlugin)); middle_vbox_container->add_child(scenes_collection_source_inspector); @@ -572,6 +574,7 @@ LayeredTileSetScenesCollectionSourceEditor::LayeredTileSetScenesCollectionSource tile_inspector = memnew(EditorInspector); tile_inspector->set_enable_v_scroll(false); + tile_inspector->set_enable_h_scroll(false); tile_inspector->set_use_doc_hints(true); tile_inspector->set_use_folding(true); middle_vbox_container->add_child(tile_inspector);