entry: fix cursor position initialization issues when theme is changed 64/165264/1 tizen_3.0
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:33:57 +0000 (10:33 +0000)
commitbaf41fd727d04373d645f9683cd3c366e4ca5e14
tree2ac9fb4e0b0ad81fa9b8506b6a908c15230f4518
parentc1b8ea4f59774dd0cd881dcbdde647540dbfd77b
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