[genlist] input the value old_scrl_y, in case of group item.
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 24 Jun 2011 11:39:31 +0000 (20:39 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 24 Jun 2011 11:39:31 +0000 (20:39 +0900)
Change-Id: Ied0a15d9bad0e84186df67bb4b0b52a3e4129ca8

src/lib/elm_genlist.c

index cb27bbc..febcdd7 100644 (file)
@@ -2493,8 +2493,6 @@ _item_block_position(Item_Block *itb,
                                        evas_object_hide(it->base.view);
                                     }
                                }
-                               it->old_scrl_x = it->scrl_x;
-                               it->old_scrl_y = it->scrl_y;
                             }
                     }
                   else
@@ -2508,6 +2506,11 @@ _item_block_position(Item_Block *itb,
           {
              if (vis) it->want_realize = EINA_TRUE;
           }
+        if (!it->wd->effect_mode || it->wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_NONE || ((it->wd->move_effect_mode != ELM_GENLIST_ITEM_MOVE_EFFECT_DELETE) && it->parent == it->wd->expand_item))
+          {
+             it->old_scrl_x = it->scrl_x;
+             it->old_scrl_y = it->scrl_y;
+          }
         y += it->h;
      }
    evas_event_thaw(evas_object_evas_get(itb->wd->obj));