diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-09 09:09:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-09 09:09:42 +0100 |
commit | d7b2940eb6293dfc136c379c55c852cf6898c74d (patch) | |
tree | e6ba8618ed12d15f3857e91bdb7cda02fba354fd /scene | |
parent | 2c606647df849af203c3c5dbdfa98a82569909b6 (diff) | |
parent | 4937b21ce52eda4c68fe7e20d0007dc3da2621e4 (diff) |
Merge pull request #34203 from bruvzg/ime_placeholder
Hide LineEdit placeholder if IME composition string is not empty.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index e6a27aa63f..d96ca69c87 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -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) { |