diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-05-14 21:53:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 21:53:36 +0000 |
commit | 15cda53d802f5cfe00d8c2cb5263e6b45090d094 (patch) | |
tree | 35cfb86b4abd85a1bdff1ccfa180e6ed9efc48c6 | |
parent | 256bac6ba52391aca1b5cc46828d593f7d420d24 (diff) | |
parent | 505ab3d2252fcdbf6515e12e2ac375644924cdb7 (diff) |
Merge pull request #28583 from theoniko/show-long-name-variables-correctly
Fix First Ctrl+R and Ctrl+F not showing long name variables correctly
-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; |