genlist: fix item show/bring in coordinate calculation with zero-sized pan. 06/189406/3
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>
Mon, 17 Sep 2018 10:54:41 +0000 (19:54 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 18 Sep 2018 10:53:53 +0000 (10:53 +0000)
commite5c56c6da429280ee8cb8c9c295ffbdc603b4e85
treec0a5c6a25395c75aff370ca46f657746c4c2b994
parent2a778c8f51e52a812d59b3a6676b13d4b1dc3627
genlist: fix item show/bring in coordinate calculation with zero-sized pan.

item show and bring can be processed with zero-sized pan.
item's coordinate will be calculated with this zero-sized pan,
so target position of scroll region bring in is not proper.

it occurs wrong result of SCROLLTO_MIDDLE and SCROLLTO_BOTTOM cases.

now we check pan size, and if less than 1, deferred call.

this is port of upstream patch D7037

Change-Id: Ie5d5ecd039d835caefa47c272547506946e91a37
Signed-off-by: SangHyeon Jade Lee <sh10233.lee@samsung.com>
src/lib/elementary/elm_genlist.c