From a187fb381ee68eae44883a788aa2f871a133a9e9 Mon Sep 17 00:00:00 2001 From: robfram Date: Wed, 2 May 2018 21:15:46 +0200 Subject: [PATCH] Fix placeholders position in `LineEdit` when editing inside the Editor Editing the `Text` property through the editor causes a wrong placement of the placeholder, as it calls `LineEdit::clear_internal`, which was wrongly reseting the cached placeholder width. Fix #18184. (cherry picked from commit c17de1f70fcba19f2afdfe49d194b9b175791ea8) --- scene/gui/line_edit.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index ebc705c0403..7fd15a38cd8 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -1135,7 +1135,6 @@ void LineEdit::clear_internal() { _clear_undo_stack(); cached_width = 0; - cached_placeholder_width = 0; cursor_pos = 0; window_pos = 0; undo_text = "";