1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Fix debugger inspector minimum size

This commit is contained in:
kit
2025-06-12 17:52:43 -04:00
parent 03bd8ba9c2
commit b45d45e4ce

View File

@@ -417,18 +417,11 @@ void EditorDebuggerInspector::add_stack_variable(const Array &p_array, int p_off
variables->prop_values[type + n][0] = v; variables->prop_values[type + n][0] = v;
variables->update(); variables->update();
edit(variables); edit(variables);
// To prevent constantly resizing when using filtering.
int size_x = get_size().x;
if (size_x > get_custom_minimum_size().x) {
set_custom_minimum_size(Size2(size_x, 0));
}
} }
void EditorDebuggerInspector::clear_stack_variables() { void EditorDebuggerInspector::clear_stack_variables() {
variables->clear(); variables->clear();
variables->update(); variables->update();
set_custom_minimum_size(Size2(0, 0));
} }
String EditorDebuggerInspector::get_stack_variable(const String &p_var) { String EditorDebuggerInspector::get_stack_variable(const String &p_var) {