summaryrefslogtreecommitdiffstats
path: root/editor/debugger/editor_debugger_inspector.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-01-14 16:12:53 +0100
committerGitHub <noreply@github.com>2022-01-14 16:12:53 +0100
commit387f2744f70618c9e5efd0bc2d0cedcb7c2b25b9 (patch)
tree3489876ad74035bfe6bc34765b1fc83313849ccf /editor/debugger/editor_debugger_inspector.cpp
parent95b493c9408cd1073065d0f4e00b00beea380e40 (diff)
parent49db87ab3d9f4119ad73783301eb5d85d3511f7d (diff)
downloadredot-engine-387f2744f70618c9e5efd0bc2d0cedcb7c2b25b9.tar.gz
Merge pull request #56719 from Chaosus/gds_debugger_filter
Diffstat (limited to 'editor/debugger/editor_debugger_inspector.cpp')
-rw-r--r--editor/debugger/editor_debugger_inspector.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/debugger/editor_debugger_inspector.cpp b/editor/debugger/editor_debugger_inspector.cpp
index ddcd32c16f..38bdbe2870 100644
--- a/editor/debugger/editor_debugger_inspector.cpp
+++ b/editor/debugger/editor_debugger_inspector.cpp
@@ -262,11 +262,18 @@ void EditorDebuggerInspector::add_stack_variable(const Array &p_array) {
variables->prop_values[type + n] = v;
variables->update();
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() {
variables->clear();
variables->update();
+ set_custom_minimum_size(Size2(0, 0));
}
String EditorDebuggerInspector::get_stack_variable(const String &p_var) {