fix gengrid group index unrealized issue 86/245986/1
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>
Wed, 21 Oct 2020 07:17:14 +0000 (16:17 +0900)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Wed, 21 Oct 2020 07:17:16 +0000 (16:17 +0900)
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

index 6eb78a0..c3002d3 100755 (executable)
@@ -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)