Call minimum_size_changed() on redo/undo if expand_to_text_length is true
Fixes #28241
(cherry picked from commit da2a0a3814
)
This commit is contained in:
parent
f6c0078264
commit
693f3c9d62
|
@ -920,6 +920,10 @@ void LineEdit::undo() {
|
|||
TextOperation op = undo_stack_pos->get();
|
||||
text = op.text;
|
||||
set_cursor_position(op.cursor_pos);
|
||||
|
||||
if (expand_to_text_length)
|
||||
minimum_size_changed();
|
||||
|
||||
_emit_text_change();
|
||||
}
|
||||
|
||||
|
@ -934,6 +938,10 @@ void LineEdit::redo() {
|
|||
TextOperation op = undo_stack_pos->get();
|
||||
text = op.text;
|
||||
set_cursor_position(op.cursor_pos);
|
||||
|
||||
if (expand_to_text_length)
|
||||
minimum_size_changed();
|
||||
|
||||
_emit_text_change();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue