Revert "Updated LineEdit to address #41278"
This reverts commit 1b6d116dfb.
This commit is contained in:
@ -1263,12 +1263,7 @@ void LineEdit::delete_text(int p_from_column, int p_to_column) {
|
|||||||
void LineEdit::set_text(String p_text) {
|
void LineEdit::set_text(String p_text) {
|
||||||
|
|
||||||
clear_internal();
|
clear_internal();
|
||||||
|
append_at_cursor(p_text);
|
||||||
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) {
|
if (expand_to_text_length) {
|
||||||
minimum_size_changed();
|
minimum_size_changed();
|
||||||
|
|||||||
Reference in New Issue
Block a user