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:
JEONGHYUN YUN 2016-12-09 11:33:26 +09:00 committed by WooHyun Jung
parent 509cce5e43
commit 8784ba97ad
1 changed files with 2 additions and 0 deletions

View File

@ -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);