From f19eea2f2d01cdfd671f16436eb639b46908b150 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Mon, 7 Mar 2016 02:32:51 +0000 Subject: Enabled scrolling past end of file --- scene/gui/text_edit.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scene/gui/text_edit.h') diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index 44e780aaf3..8d0efc406a 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -211,6 +211,7 @@ class TextEdit : public Control { bool undo_enabled; bool line_numbers; + bool scroll_past_end_of_file_enabled; bool auto_brace_completion_enabled; bool brace_matching_enabled; bool auto_indent; @@ -322,6 +323,10 @@ public: void set_line(int line, String new_text); void backspace_at_cursor(); + inline void set_scroll_pass_end_of_file(bool p_enabled) { + scroll_past_end_of_file_enabled = p_enabled; + update(); + } inline void set_auto_brace_completion(bool p_enabled) { auto_brace_completion_enabled = p_enabled; } -- cgit v1.2.3