Merge pull request #34203 from bruvzg/ime_placeholder

Hide LineEdit placeholder if IME composition string is not empty.
This commit is contained in:
Rémi Verschelde 2019-12-09 09:09:42 +01:00 committed by GitHub
commit d7b2940eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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) {