entry: fix scroll region jumping issue
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 10 Nov 2016 08:45:49 +0000 (17:45 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 17 Nov 2016 08:07:49 +0000 (17:07 +0900)
commitbcd788bab6f3cc66e1f1b2d30818436a29755c86
tree76b18b778985419b61b5d44013aeb74c32d0f81b
parent485640ade515a4e1cd62199b123623f2cff89518
entry: fix scroll region jumping issue

When elm_entry takes focus by mouse clicked,
scroll region should be decided by new cursor position.

1. *_on_focus_region
   *_on_focus_region will be called before updating cursor position.
   So, elm_entry need to predict cursor position by mouse down and move.

2. _show_region_hook
   The geometry from elm_widget_show_region_get() is not proper when
   the hook function is called. We need to get cursor's geometry everytime.
   Becasue, the geometry is relative. Whenever scroll region updated,
   the geometry also has to be updated.

* dependancy warrning :
  - efl
  "edje entry: keep cursor position on mouse down and move"
  https://review.tizen.org/gerrit/#/c/96783/

@tizen_fix

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