Merge pull request #28583 from theoniko/show-long-name-variables-correctly

Fix First Ctrl+R and Ctrl+F not showing long name variables correctly
This commit is contained in:
Michael Alexsander Silva Dias 2019-05-14 21:53:36 +00:00 committed by GitHub
commit 15cda53d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

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;