genlist tree items now animate their collapse properly when there are fewer items...
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 29 May 2012 15:00:17 +0000 (15:00 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 29 May 2012 15:00:17 +0000 (15:00 +0000)
SVN revision: 71508

ChangeLog
src/lib/elm_genlist.c

index 3813d23..73e6c50 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
         * Prepending items to a genlist no longer causes the selected item to
           scroll out of the viewport
+        * Collapsing tree items in genlist now animate properly
index 15a2e8e..09c5726 100644 (file)
@@ -6209,7 +6209,7 @@ _tree_effect_animator_cb(void *data)
                }
              else if (wd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_CONTRACT)
                {
-                  if (expanded_next_it->item->scrl_y >= expanded_next_it->item->old_scrl_y) //did not calculate next item position
+                  if (expanded_next_it->item->scrl_y > expanded_next_it->item->old_scrl_y) //did not calculate next item position
                      expanded_next_it->item->old_scrl_y = cvy + cvh;
 
                   if (expanded_next_it->item->old_scrl_y > (cvy + cvh))