Browse Source

Merge pull request #37104 from alvaroHernandez/fix-joypad-button-editor

Prevent joypad button input dropdown going out of dialog
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
2658ccb85f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      editor/project_settings_editor.cpp

+ 2 - 0
editor/project_settings_editor.cpp

@@ -2006,6 +2006,8 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
 	device_index_label = l;
 
 	device_index = memnew(OptionButton);
+	device_index->set_clip_text(true);
+
 	vbc_right->add_child(device_index);
 
 	setting = false;