efl_ui_collection: always scroll in the item
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Sun, 29 Dec 2019 10:31:53 +0000 (11:31 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 5 Jan 2020 21:53:51 +0000 (06:53 +0900)
never the focused element. The focused element can be different from the
item. This fixes a error when item is not focusable, but content in the
item is.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10980

src/lib/elementary/efl_ui_collection.c

index e69e7c4..5d2b85b 100644 (file)
@@ -1087,7 +1087,7 @@ _efl_ui_collection_efl_ui_focus_manager_move(Eo *obj, Efl_Ui_Collection_Data *pd
      }
    else
      {
-        _item_scroll_internal(obj, pd, new_obj, .0, EINA_TRUE);
+        _item_scroll_internal(obj, pd, efl_provider_find(new_obj, EFL_UI_ITEM_CLASS), .0, EINA_TRUE);
      }
 
    return new_obj;