Fix First Ctrl+R and Ctrl+F not showing long name variables correctly

This commit is contained in:
theoniko 2019-05-01 20:41:32 +02:00
parent 9f49e50d6d
commit 505ab3d225

View File

@ -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;