Преглед изворни кода

Hide LineEdit placeholder if IME composition string is not empty.

bruvzg пре 5 година
родитељ
комит
4937b21ce5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      scene/gui/line_edit.cpp

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