genlist: Fix fileselector crazy behaviour
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 24 Feb 2017 06:34:42 +0000 (15:34 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 27 Feb 2017 07:26:41 +0000 (16:26 +0900)
commit3574eb8c07b3ea04ba25d7ae9f6bf1df05c5b7d6
tree29d1947e8e825cb98e6a1f7b3245e7a3380e58f1
parent380759a89e88f3f3cc0d4038f3dc5bd5c623160f
genlist: Fix fileselector crazy behaviour

When using the fileselector in tree view mode (ie. expandable),
expanding any folder with a lot of files in it would cause the
genlist view to jump somewhere to the bottom. This is because
the mechanism preventing the view from moving was assuming that
all "prepend" operations meant prepending before the selected
item. This is not the case in case of expansion like in the
fileselector.

@fix
src/lib/elementary/elm_genlist.c