[genlist] fix effect move expand at item iterating
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Fri, 8 Jul 2011 08:44:53 +0000 (17:44 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Fri, 8 Jul 2011 08:44:53 +0000 (17:44 +0900)
src/lib/elm_genlist.c

index 04bc9fc..8793908 100644 (file)
@@ -5997,6 +5997,7 @@ _item_moving_effect_timer_cb(void *data)
              it = elm_genlist_item_prev_get(it2);
              while (it)
                {
+                  if (it->expanded_depth <= it2->expanded_depth) break;
                   if ((it->scrl_y < it2->old_scrl_y + y) && (it->expanded_depth > it2->expanded_depth))
                     {
                        if (!it->effect_done)
@@ -6007,7 +6008,6 @@ _item_moving_effect_timer_cb(void *data)
                          }
                     }
                   it = elm_genlist_item_prev_get(it);
-                  if (it->expanded_depth <= it2->expanded_depth) break;
                }
           }
         else if (wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_CONTRACT)