diff options
author | theoniko <nikolaoutheod@gmail.com> | 2019-05-01 20:41:32 +0200 |
---|---|---|
committer | theoniko <nikolaoutheod@gmail.com> | 2019-05-01 20:59:17 +0200 |
commit | 505ab3d2252fcdbf6515e12e2ac375644924cdb7 (patch) | |
tree | 650b86d6979b7f5266deb0f75cb109ca4424db6c /scene | |
parent | 9f49e50d6d6ba8ad54e1106ab3954177ecc794c2 (diff) |
Fix First Ctrl+R and Ctrl+F not showing long name variables correctly
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index d889c8d8b8..b10ddfaf70 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -613,9 +613,7 @@ void LineEdit::_notification(int p_what) { #endif case NOTIFICATION_RESIZED: { - if (expand_to_text_length) { - window_pos = 0; //force scroll back since it's expanding to text length - } + window_pos = 0; //force scroll back since it's expanding to text length set_cursor_position(get_cursor_position()); } break; |