summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorrobfram <robfram@gmail.com>2018-05-02 21:15:46 +0200
committerrobfram <robfram@gmail.com>2018-05-02 21:15:46 +0200
commitc17de1f70fcba19f2afdfe49d194b9b175791ea8 (patch)
tree90fb4f6d846f1100152192aaa4b15fa3eee12b44 /scene
parentc9abe88110abdc51bf520cd9af95e59374f7c0cc (diff)
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.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/line_edit.cpp1
1 files changed, 0 insertions, 1 deletions
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 = "";