diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2017-10-08 14:29:27 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2017-10-08 14:29:27 +0100 |
commit | b07dfd75eaa3a89aefda9c26e33f91d8eaa80fc8 (patch) | |
tree | d033d978cf660cd377880af38974b5255602d1fc /editor/plugins/script_text_editor.cpp | |
parent | bd10a002402de6e3a69a17af604784ea7f5b3330 (diff) | |
download | redot-engine-b07dfd75eaa3a89aefda9c26e33f91d8eaa80fc8.tar.gz |
Consistant scroll when using members overview, issue 11648
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index a24856dad7..adf65c11e1 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -529,9 +529,9 @@ void ScriptTextEditor::ensure_focus() { void ScriptTextEditor::set_edit_state(const Variant &p_state) { Dictionary state = p_state; - code_editor->get_text_edit()->set_v_scroll(state["scroll_position"]); code_editor->get_text_edit()->cursor_set_column(state["column"]); code_editor->get_text_edit()->cursor_set_line(state["row"]); + code_editor->get_text_edit()->set_v_scroll(state["scroll_position"]); code_editor->get_text_edit()->grab_focus(); //int scroll_pos; |