From 505ab3d2252fcdbf6515e12e2ac375644924cdb7 Mon Sep 17 00:00:00 2001 From: theoniko Date: Wed, 1 May 2019 20:41:32 +0200 Subject: [PATCH] Fix First Ctrl+R and Ctrl+F not showing long name variables correctly --- scene/gui/line_edit.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index d889c8d8b8c..b10ddfaf703 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;