From 5a8066bd50a2323160f5d8ab09de1a2168123597 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 30 Mar 2024 09:37:00 +0100 Subject: [PATCH] Fix scroll to description --- editor/editor_help.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 022cf82426a..8fcce09b2f3 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -2306,7 +2306,8 @@ void EditorHelp::_help_callback(const String &p_topic) { } if (class_desc->is_ready()) { - callable_mp(class_desc, &RichTextLabel::scroll_to_paragraph).call_deferred(line); + // call_deferred() is not enough. + class_desc->connect("draw", callable_mp(class_desc, &RichTextLabel::scroll_to_paragraph).bind(line), CONNECT_ONE_SHOT | CONNECT_DEFERRED); } else { scroll_to = line; }