Skip to content

Commit 9b0b7af

Browse files
committed
Merge pull request godotengine#90035 from KoBeWi/SUPER_CALL_DEFERRED
Fix scroll to description
2 parents 578d937 + 5a8066b commit 9b0b7af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor/editor_help.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,8 @@ void EditorHelp::_help_callback(const String &p_topic) {
23242324
}
23252325

23262326
if (class_desc->is_ready()) {
2327-
callable_mp(class_desc, &RichTextLabel::scroll_to_paragraph).call_deferred(line);
2327+
// call_deferred() is not enough.
2328+
class_desc->connect("draw", callable_mp(class_desc, &RichTextLabel::scroll_to_paragraph).bind(line), CONNECT_ONE_SHOT | CONNECT_DEFERRED);
23282329
} else {
23292330
scroll_to = line;
23302331
}

0 commit comments

Comments
 (0)