enventor: Fix to move scroller bar to correct position for find function

enventor creates a scroller instead of using entry's scroller for text
editor. This causes that the scroller bar moves to incorrect position
when a word is selected by find function. To resolve this problem, set
entry's cursor position before setting entry's select region.
This commit is contained in:
Jaehyun Cho 2015-12-07 17:17:29 +09:00
parent 4cbc3e5adc
commit 2e541e722a
1 changed files with 1 additions and 0 deletions

View File

@ -536,6 +536,7 @@ _enventor_object_select_region_set(Eo *obj EINA_UNUSED,
Enventor_Object_Data *pd, int start, int end)
{
edit_selection_clear(pd->ed);
elm_entry_cursor_pos_set(edit_entry_get(pd->ed), start);
elm_entry_select_region_set(edit_entry_get(pd->ed), start, end);
}