1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Hide LineEdit placeholder if IME composition string is not empty.

This commit is contained in:
bruvzg
2019-12-08 18:24:30 +02:00
parent 8eb183aebb
commit 4937b21ce5

View File

@@ -704,7 +704,7 @@ void LineEdit::_notification(int p_what) {
}
int x_ofs = 0;
bool using_placeholder = text.empty();
bool using_placeholder = text.empty() && ime_text.empty();
int cached_text_width = using_placeholder ? cached_placeholder_width : cached_width;
switch (align) {