entry: fix cursor position initialization issues when theme is changed 63/165263/1 accepted/tizen/4.0/unified/20180111.044033 submit/tizen_4.0/20180103.115053
authorYoungbok Shin <youngb.shin@samsung.com>
Wed, 27 Dec 2017 10:28:31 +0000 (19:28 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Wed, 27 Dec 2017 10:28:31 +0000 (19:28 +0900)
commit9e8244d79e0d1594a7d2162eb22f613f04f8d162
tree7ad1391649229025fe090c092ef7c7a2f4e57b57
parent87d1b20b1100be5bd4cf1593a35a047a9958afd4
entry: fix cursor position initialization issues when theme is changed

The issue was caused by the following patch.
"elm_entry: Save cursor position before entry text clear"

It needed to get cursor position at the text_set function to avoid
cursor position issue by delaying signal callback functions.
So, we can't remove the patch. In the theme_apply, we need to handle
cursor position more carefully to fix this side effect.

@tizen_fix

Change-Id: Id63aa401ba2572559bc241f54350b781c72f5092
src/lib/elm_entry.c