Revert "Updated LineEdit to address #41278"
This reverts commit 1b6d116dfb
.
This commit is contained in:
parent
9be924c454
commit
8a66ea7cb0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue