Repository: godotengine/godot (language: cpp)

Issue:
Exported array in inspector has slider for array size
### Tested versions

- Reproducible in v4.4.beta.custom_build [eee39f004]

### System information

Godot v4.4.beta (eee39f004) - macOS Sequoia (15.3.0) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - AMD Radeon Pro 5500 XT OpenGL Engine - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz (16 threads)

### Issue description

The array size field in the editor inspector includes a slider, which is effectively useless because it has such a large range:

https://github.com/user-attachments/assets/99cebd43-0dd0-4e40-9eba-456725123e22

[In `editor/editor_properties_array_dict.cpp` at line 449, we can see that its maximum value is indeed `INT32_MAX`](https://github.com/godotengine/godot/blob/eee39f004b42a4948af90cdebedf65c34a4a4970/editor/editor_properties_array_dict.cpp#L449):
```cpp
size_slider->set_max(INT32_MAX);
```

This number is so large that even with the slider just *barely* moved off to the right, the array is being given over 5,000,000 elements. There is also noticeable lag in the editor as this is done.

### Steps to reproduce

Create an exported array in a GDScript class:
```gdscript
@export var my_array: Array[int] = []
```

Then, attach it to a node in the editor. Select the node and expand the array, and observe the slider on the "Size:" field. Try to drag it, and notice that the array size becomes *very* large.

### Minimal reproduction project (MRP)

N/A


Discussion / hints:

Fix patch:
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp
index 9663157ff990..93c5a70cf907 100644
--- a/editor/editor_properties_array_dict.cpp
+++ b/editor/editor_properties_array_dict.cpp
@@ -447,6 +447,7 @@ void EditorPropertyArray::update_property() {
 			size_slider = memnew(EditorSpinSlider);
 			size_slider->set_step(1);
 			size_slider->set_max(INT32_MAX);
+			size_slider->set_editing_integer(true);
 			size_slider->set_h_size_flags(SIZE_EXPAND_FILL);
 			size_slider->set_read_only(is_read_only());
 			size_slider->connect(SceneStringName(value_changed), callable_mp(this, &EditorPropertyArray::_length_changed));


Test patch: