From 22f3ab477f46c13fc6b7c7181cd3a591b11cd09f Mon Sep 17 00:00:00 2001 From: SangHyeon Jade Lee Date: Wed, 21 Oct 2020 16:17:14 +0900 Subject: [PATCH] fix gengrid group index unrealized issue gengrid group index need to be unrealized when item is not in the viewport unlike upstream realized till their group is one the view. Change-Id: Ie2dbb2f0a58ac563c43cfd0b45bc7b88aefd5ebf --- src/lib/elementary/elm_gengrid.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c index 6eb78a0..c3002d3 100755 --- a/src/lib/elementary/elm_gengrid.c +++ b/src/lib/elementary/elm_gengrid.c @@ -2526,13 +2526,16 @@ _item_place(Elm_Gen_Item *it, if (it->item->proxy) evas_object_hide(it->item->proxy); // - if (!it->group) - _elm_gengrid_item_unrealize(it, EINA_FALSE); - else + _elm_gengrid_item_unrealize(it, EINA_FALSE); +//TIZEN_ONLY(20170131): Group on Top Feature is not tizen UI. + if (it->group) item->group_realized = EINA_FALSE; +// } } +//TIZEN_ONLY(20170131): Group on Top Feature is not tizen UI. +/* static void _group_item_place(Elm_Gengrid_Pan_Data *psd) { @@ -2567,11 +2570,8 @@ _group_item_place(Elm_Gengrid_Pan_Data *psd) if (it->base->func.realized) it->base->func.realized(EO_OBJ(it)); _flush_focus_on_realization(WIDGET(it), it); } - //TIZEN_ONLY(20170131): Group on Top Feature is not tizen UI. - /* - * evas_object_geometry_set(VIEW(it), GG_IT(it)->gx, GG_IT(it)->gy, - * iw, ih); - */ + evas_object_geometry_set(VIEW(it), GG_IT(it)->gx, GG_IT(it)->gy, + iw, ih); evas_object_resize(VIEW(it), iw, ih); evas_object_raise(VIEW(it)); } @@ -2579,6 +2579,7 @@ _group_item_place(Elm_Gengrid_Pan_Data *psd) _elm_gengrid_item_unrealize(it, EINA_FALSE); } } +*/ EOLIAN static void _elm_gengrid_pan_efl_canvas_group_group_calculate(Eo *obj EINA_UNUSED, Elm_Gengrid_Pan_Data *psd) @@ -2650,8 +2651,9 @@ _elm_gengrid_pan_efl_canvas_group_group_calculate(Eo *obj EINA_UNUSED, Elm_Gengr } } } - _group_item_place(psd); - +//TIZEN_ONLY(20170131): Group on Top Feature is not tizen UI. +// _group_item_place(psd); +// if ((sd->reorder_mode) && (sd->reorder_it)) { if (!sd->reorder_item_changed) -- 2.7.4