You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Fix scroll to description
This commit is contained in:
@@ -2306,7 +2306,8 @@ void EditorHelp::_help_callback(const String &p_topic) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (class_desc->is_ready()) {
|
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 {
|
} else {
|
||||||
scroll_to = line;
|
scroll_to = line;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user