Revert "Updated LineEdit to address #41278"

This reverts commit 1b6d116dfb.
This commit is contained in:
Rémi Verschelde 2020-09-01 14:01:50 +02:00
parent 9be924c454
commit 8a66ea7cb0
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 6 deletions

View File

@ -1263,12 +1263,7 @@ void LineEdit::delete_text(int p_from_column, int p_to_column) {
void LineEdit::set_text(String p_text) {
clear_internal();
if (p_text.length() > max_length) {
append_at_cursor(p_text.substr(0, max_length));
} else {
append_at_cursor(p_text);
}
if (expand_to_text_length) {
minimum_size_changed();