From c17de1f70fcba19f2afdfe49d194b9b175791ea8 Mon Sep 17 00:00:00 2001 From: robfram Date: Wed, 2 May 2018 21:15:46 +0200 Subject: 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. --- scene/gui/line_edit.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'scene') diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index ef0d5e4c6e..e3b8baf0c0 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -1143,7 +1143,6 @@ void LineEdit::clear_internal() { _clear_undo_stack(); cached_width = 0; - cached_placeholder_width = 0; cursor_pos = 0; window_pos = 0; undo_text = ""; -- cgit v1.2.3