aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2018-03-12 11:12:19 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-03-15 15:39:12 +0100
commit1d3209a9ecdad730356b362077b05b0994dd1a22 (patch)
treec8cb01fdaa00ea8f2087d2cda9be29af4c0c454b
parentelm_genlist: support immidiate focus once the item is realized (diff)
downloadefl-1d3209a9ecdad730356b362077b05b0994dd1a22.tar.gz
elm_widget_item_static_focus: move canvas_object_set to later
We dont delete the adapeter when we are still focused, to set anyway the correct view to it, we need to set the view to the adapeter as often as possible
-rw-r--r--src/lib/elementary/elm_widget_item_static_focus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_widget_item_static_focus.c b/src/lib/elementary/elm_widget_item_static_focus.c
index 637de012e3..09a892326c 100644
--- a/src/lib/elementary/elm_widget_item_static_focus.c
+++ b/src/lib/elementary/elm_widget_item_static_focus.c
@@ -67,7 +67,6 @@ _elm_widget_item_static_focus_efl_ui_focus_object_prepare_logical(Eo *obj, Elm_W
{
// parent has to stay the object, since this is used to get the item of a adapter
pd->adapter = efl_add(EFL_UI_FOCUS_COMPOSITION_ADAPTER_CLASS, obj);
- efl_ui_focus_composition_adapter_canvas_object_set(pd->adapter, wpd->view);
efl_wref_add(pd->adapter, &pd->adapter);
efl_ui_focus_manager_calc_register(wpd->widget, pd->adapter, obj, NULL);
}
@@ -78,6 +77,10 @@ _elm_widget_item_static_focus_efl_ui_focus_object_prepare_logical(Eo *obj, Elm_W
efl_del(pd->adapter);
pd->adapter = NULL;
}
+
+ //genlist sometimes changes views when doing quick scrolls so reset the view in every possible call
+ if (pd->adapter)
+ efl_ui_focus_composition_adapter_canvas_object_set(pd->adapter, wpd->view);
}
EOLIAN static Efl_Object*