You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Remove update condition from LineEdit::update_placeholder_width
Placeholder with length greater than `max_length` are allowed, so there is no reason for those update condition. It fixes the odd alignment of placeholder when it's length is greater than `max_length`
This commit is contained in:
@@ -1710,7 +1710,6 @@ void LineEdit::update_cached_width() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LineEdit::update_placeholder_width() {
|
void LineEdit::update_placeholder_width() {
|
||||||
if ((max_length <= 0) || (placeholder_translated.length() <= max_length)) {
|
|
||||||
Ref<Font> font = get_font("font");
|
Ref<Font> font = get_font("font");
|
||||||
cached_placeholder_width = 0;
|
cached_placeholder_width = 0;
|
||||||
if (font != NULL) {
|
if (font != NULL) {
|
||||||
@@ -1719,7 +1718,6 @@ void LineEdit::update_placeholder_width() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void LineEdit::_clear_redo() {
|
void LineEdit::_clear_redo() {
|
||||||
_create_undo_state();
|
_create_undo_state();
|
||||||
|
|||||||
Reference in New Issue
Block a user