mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Consistant scroll when using members overview, issue 11648
This commit is contained in:
parent
bd10a00240
commit
b07dfd75ea
3 changed files with 14 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue