Merge pull request #37123 from simpuid/placeholder-fix
Remove update condition from LineEdit::update_placeholder_width
This commit is contained in:
commit
ae68c33570
1 changed files with 5 additions and 7 deletions
|
@ -1710,7 +1710,6 @@ void LineEdit::update_cached_width() {
|
|||
}
|
||||
|
||||
void LineEdit::update_placeholder_width() {
|
||||
if ((max_length <= 0) || (placeholder_translated.length() <= max_length)) {
|
||||
Ref<Font> font = get_font("font");
|
||||
cached_placeholder_width = 0;
|
||||
if (font != NULL) {
|
||||
|
@ -1718,7 +1717,6 @@ void LineEdit::update_placeholder_width() {
|
|||
cached_placeholder_width += font->get_char_size(placeholder_translated[i]).width;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LineEdit::_clear_redo() {
|
||||
|
|
Loading…
Reference in a new issue