Skip to content

Commit 5a8066b

Browse files
committed
Fix scroll to description
1 parent 29b3d9e commit 5a8066b

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
@@ -2306,7 +2306,8 @@ void EditorHelp::_help_callback(const String &p_topic) {
23062306
}
23072307

23082308
if (class_desc->is_ready()) {
2309-
callable_mp(class_desc, &RichTextLabel::scroll_to_paragraph).call_deferred(line);
2309+
// call_deferred() is not enough.
2310+
class_desc->connect("draw", callable_mp(class_desc, &RichTextLabel::scroll_to_paragraph).bind(line), CONNECT_ONE_SHOT | CONNECT_DEFERRED);
23102311
} else {
23112312
scroll_to = line;
23122313
}

0 commit comments

Comments
 (0)