nikawhite pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=778d3c48790b001d1c878c4cd10b469aef4fac52

commit 778d3c48790b001d1c878c4cd10b469aef4fac52
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Mon Sep 14 14:54:36 2015 +0000

    Autocomp: bring the selected item in candidates list.
    
    Summary:
    For cases when the autocomplete list contain
    a lot of items, that  the list enables scrollbar. This make impossible
    to scroll last item by Down arrows. It is happens because the
    focus is not allow for elm_list widget. This patch bring
    selected item manually.
    
    Reviewers: Hermet
    
    Differential Revision: https://phab.enlightenment.org/D3040
---
 src/lib/auto_comp.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/auto_comp.c b/src/lib/auto_comp.c
index 94d4950..b2b5b29 100644
--- a/src/lib/auto_comp.c
+++ b/src/lib/auto_comp.c
@@ -749,7 +749,11 @@ list_item_move(autocomp_data *ad, Eina_Bool up)
    Elm_Object_Item *it = elm_list_selected_item_get(ad->list);
    if (up) it = elm_list_item_prev(it);
    else it = elm_list_item_next(it);
-   if (it) elm_list_item_selected_set(it, EINA_TRUE);
+   if (it)
+     {
+        elm_list_item_selected_set(it, EINA_TRUE);
+        elm_list_item_bring_in(it);
+     }
 
    evas_object_smart_callback_add(entry, "unfocused", anchor_unfocused_cb,
                                   ad);

-- 


Reply via email to