mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
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 c17de1f70f)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
868c44b239
commit
a187fb381e
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user