genlist tree items now animate their collapse properly when there are fewer items than the maximum size of the viewport allows

SVN revision: 71508
This commit is contained in:
Mike Blumenkrantz 2012-05-29 15:00:17 +00:00
parent b9f0a6d736
commit 5c725cf60c
2 changed files with 2 additions and 1 deletions

View File

@ -119,3 +119,4 @@
* 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

View 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))