From: SangHyeon Jade Lee Date: Wed, 21 Oct 2020 07:17:14 +0000 (+0900) Subject: fix gengrid group index unrealized issue X-Git-Tag: accepted/tizen/unified/20201102.124241~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F245986%2F1;p=platform%2Fupstream%2Fefl.git 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 --- 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)