forked from enlightenment/efl
elm_entry: Init cursor position when entry text set.
Summary: Cursor position should be initialized because entry will be cleared when entry text set. Reviewers: woohyun, id213sin Reviewed By: id213sin Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4469
This commit is contained in:
parent
509cce5e43
commit
8784ba97ad
|
@ -3220,6 +3220,8 @@ _elm_entry_elm_layout_text_set(Eo *obj, Elm_Entry_Data *sd, const char *part, co
|
|||
}
|
||||
|
||||
/* Need to clear the entry first */
|
||||
sd->cursor_pos = edje_object_part_text_cursor_pos_get
|
||||
(sd->entry_edje, "elm.text", EDJE_CURSOR_MAIN);
|
||||
edje_object_part_text_set(sd->entry_edje, "elm.text", "");
|
||||
_entry_text_append(obj, entry, EINA_TRUE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue