Merge pull request #90035 from KoBeWi/SUPER_CALL_DEFERRED

Fix scroll to description
This commit is contained in:
Rémi Verschelde 2024-04-14 14:39:07 +02:00
commit 9b0b7afe28
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -2324,7 +2324,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;
}