Merge pull request #100156 from ydeltastar/fix-doc-scroll
Fix scroll to symbol's documentation
This commit is contained in:
@ -712,6 +712,7 @@
|
|||||||
<signal name="finished">
|
<signal name="finished">
|
||||||
<description>
|
<description>
|
||||||
Triggered when the document is fully loaded.
|
Triggered when the document is fully loaded.
|
||||||
|
[b]Note:[/b] This can happen before the text is processed for drawing. Scrolling values may not be valid until the document is drawn for the first time after this signal.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="meta_clicked">
|
<signal name="meta_clicked">
|
||||||
|
|||||||
@ -270,7 +270,7 @@ void EditorHelp::_search(bool p_search_previous) {
|
|||||||
|
|
||||||
void EditorHelp::_class_desc_finished() {
|
void EditorHelp::_class_desc_finished() {
|
||||||
if (scroll_to >= 0) {
|
if (scroll_to >= 0) {
|
||||||
class_desc->scroll_to_paragraph(scroll_to);
|
class_desc->connect(SceneStringName(draw), callable_mp(class_desc, &RichTextLabel::scroll_to_paragraph).bind(scroll_to), CONNECT_ONE_SHOT | CONNECT_DEFERRED);
|
||||||
}
|
}
|
||||||
scroll_to = -1;
|
scroll_to = -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user