diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-10-09 15:19:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-09 15:19:15 +0200 |
commit | 438e32d6520c4fc37676bfdc2d287178a13c326c (patch) | |
tree | fbaacfbc2dc3361ca7f11ec2f7358c6255329594 /editor/plugins/script_text_editor.cpp | |
parent | cb7e4aa6d46ec247c7fc41104e4459a062cce77c (diff) | |
parent | b07dfd75eaa3a89aefda9c26e33f91d8eaa80fc8 (diff) | |
download | redot-engine-438e32d6520c4fc37676bfdc2d287178a13c326c.tar.gz |
Merge pull request #11941 from Paulb23/members_selected_scroll_issue_11648
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; |